From dd4e5ea373f6c3eef7b441f77f2ab4a957e62078 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Tue, 19 Mar 2019 18:41:12 -0300 Subject: [PATCH] fix shader loading on startup --- src/d_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index 859ac03c..30b89124 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -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();