fix shader loading on startup

This commit is contained in:
Jaime Passos 2019-03-19 18:41:12 -03:00
parent da001a5b54
commit dd4e5ea373
1 changed files with 9 additions and 0 deletions

View File

@ -1176,6 +1176,15 @@ void D_SRB2Main(void)
CONS_Printf("I_StartupGraphics()...\n");
I_StartupGraphics();
#ifdef HWRENDER
if (rendermode == render_opengl)
{
INT32 i;
for (i = 0; i < numwadfiles; i++)
HWR_LoadShaders(i, (wadfiles[i]->type == RET_PK3));
}
#endif
//--------------------------------------------------------- CONSOLE
// setup loading screen
SCR_Startup();