mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 19:02:45 +00:00
clear before switching, not after
This commit is contained in:
parent
55d63000f4
commit
d6eaf7e0ff
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,11 @@
|
|||
#include "s_sound.h" // ditto
|
||||
#include "g_game.h" // ditto
|
||||
#include "p_local.h" // P_AutoPause()
|
||||
#ifdef HWRENDER
|
||||
#include "hardware/hw_main.h"
|
||||
#include "hardware/hw_light.h"
|
||||
#include "hardware/hw_model.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined (USEASM) && !defined (NORUSEASM)//&& (!defined (_MSC_VER) || (_MSC_VER <= 1200))
|
||||
|
@ -423,6 +428,10 @@ void SCR_ChangeRenderer(void)
|
|||
CONS_Alert(CONS_ERROR, "OpenGL never loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (rendermode == render_opengl && (vid.glstate == VID_GL_LIBRARY_LOADED)) // Clear these out before switching to software
|
||||
HWR_ClearAllTextures();
|
||||
|
||||
#endif
|
||||
|
||||
// Set the new render mode
|
||||
|
|
Loading…
Reference in a new issue