Skip to content

Commit

Permalink
oh wait, IRenderer::Init calls into rend_ functions too..
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityBringer committed Sep 11, 2024
1 parent 4822f48 commit 1b60e7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions renderer/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ int rend_Init(renderer_type state, oeApplication* app, renderer_preferred_state*
break;
}

Renderer_initted = true;
retval = renderer_inst->Init(app, pref_state);
if (retval == 0)
rend_Close(); //Having renderer_inst->Init clean up would cause reentrancy problems, I suspect

Renderer_initted = 1;

return retval;
#else
return 0;
Expand Down

0 comments on commit 1b60e7a

Please sign in to comment.