Skip to content
Snippets Groups Projects
Commit 874dc9dd authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Don't reposition the window when changing renderers

parent 14f2ca95
No related branches found
No related tags found
No related merge requests found
...@@ -516,13 +516,17 @@ void SCR_ChangeRenderer(void) ...@@ -516,13 +516,17 @@ void SCR_ChangeRenderer(void)
return; return;
} }
if (rendermode == render_opengl && (vid.glstate == VID_GL_LIBRARY_LOADED)) // Clear these out before switching to software // Clear these out before switching to software
if (rendermode == render_opengl && vid.glstate == VID_GL_LIBRARY_LOADED)
HWR_ClearAllTextures(); HWR_ClearAllTextures();
#endif #endif
// Set the new render mode // Set the new render mode
vid.change.renderer = cv_renderer.value; vid.change.renderer = cv_renderer.value;
vid.change.set = VID_RESOLUTION_CHANGED;
// Don't reposition the window
if (vid.change.set == VID_RESOLUTION_UNCHANGED)
vid.change.set = VID_RESOLUTION_RESIZED_WINDOW;
} }
boolean SCR_IsAspectCorrect(INT32 width, INT32 height) boolean SCR_IsAspectCorrect(INT32 width, INT32 height)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment