Get rid of a lot of ifdefs around presentation mode. Instead, set things dynamically.

This commit is contained in:
Henrik Rydgård
2023-08-13 13:33:38 +02:00
parent 870c45edd7
commit ff6e118fff
44 changed files with 220 additions and 139 deletions

View File

@@ -414,7 +414,7 @@ int SDLGLGraphicsContext::Init(SDL_Window *&window, int x, int y, int w, int h,
// Finally we can do the regular initialization.
CheckGLExtensions();
draw_ = Draw::T3DCreateGLContext();
draw_ = Draw::T3DCreateGLContext(true);
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
renderManager_->SetInflightFrames(g_Config.iInflightFrames);
SetGPUBackend(GPUBackend::OPENGL);