OpenGL funny
This commit is contained in:
parent
2d3f45de0d
commit
96609e45ae
|
@ -888,10 +888,6 @@ GLTexture_t *HWR_GetTexture(INT32 tex)
|
||||||
I_Error("HWR_GetTexture: tex >= numtextures\n");
|
I_Error("HWR_GetTexture: tex >= numtextures\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Lactozilla: Renderer switching
|
|
||||||
if (needpatchrecache && (!gr_textures))
|
|
||||||
HWR_LoadTextures(gr_numtextures);
|
|
||||||
|
|
||||||
// Every texture in memory, stored in the
|
// Every texture in memory, stored in the
|
||||||
// hardware renderer's bit depth format. Wow!
|
// hardware renderer's bit depth format. Wow!
|
||||||
grtex = &gr_textures[tex];
|
grtex = &gr_textures[tex];
|
||||||
|
|
|
@ -1162,11 +1162,9 @@ void R_InitHardwareMode(void)
|
||||||
{
|
{
|
||||||
HWR_AddSessionCommands();
|
HWR_AddSessionCommands();
|
||||||
HWR_Switch();
|
HWR_Switch();
|
||||||
|
HWR_LoadTextures(numtextures);
|
||||||
if (gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction))
|
if (gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction))
|
||||||
{
|
|
||||||
HWR_SetupLevel();
|
HWR_SetupLevel();
|
||||||
HWR_LoadTextures(numtextures);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue