@@ -207,6 +207,10 @@ const program_state_mapping_t s_WSurfProgramStateName[] = {
207207{ WSURF_REVERT_NORMAL_ENABLED ," WSURF_REVERT_NORMAL_ENABLED" },
208208{ WSURF_MULTIVIEW_ENABLED ," WSURF_MULTIVIEW_ENABLED" },
209209{ WSURF_LINEAR_DEPTH_ENABLED ," WSURF_LINEAR_DEPTH_ENABLED" },
210+ { WSURF_GLOW_COLOR_ENABLED ," WSURF_GLOW_COLOR_ENABLED" },
211+ { WSURF_STENCIL_NO_GLOW_BLUR_ENABLED ," WSURF_STENCIL_NO_GLOW_BLUR_ENABLED" },
212+ { WSURF_STENCIL_NO_GLOW_COLOR_ENABLED ," WSURF_STENCIL_NO_GLOW_COLOR_ENABLED" },
213+ { WSURF_DOUBLE_FACE_ENABLED ," WSURF_DOUBLE_FACE_ENABLED" },
210214};
211215
212216void R_SaveWSurfProgramStates (void )
@@ -330,6 +334,18 @@ void R_UseWSurfProgram(program_state_t state, wsurf_program_t* progOutput)
330334 if (state & WSURF_LINEAR_DEPTH_ENABLED)
331335 defs << " #define LINEAR_DEPTH_ENABLED\n " ;
332336
337+ if (state & WSURF_GLOW_COLOR_ENABLED)
338+ defs << " #define GLOW_COLOR_ENABLED\n " ;
339+
340+ if (state & WSURF_STENCIL_NO_GLOW_BLUR_ENABLED)
341+ defs << " #define STENCIL_NO_GLOW_BLUR_ENABLED\n " ;
342+
343+ if (state & WSURF_STENCIL_NO_GLOW_COLOR_ENABLED)
344+ defs << " #define STENCIL_NO_GLOW_COLOR_ENABLED\n " ;
345+
346+ if (state & WSURF_DOUBLE_FACE_ENABLED)
347+ defs << " #define DOUBLE_FACE_ENABLED\n " ;
348+
333349 auto def = defs.str ();
334350
335351 CCompileShaderArgs args;
@@ -367,7 +383,7 @@ void R_UseWSurfProgram(program_state_t state, wsurf_program_t* progOutput)
367383 }
368384 else
369385 {
370- g_pMetaHookAPI-> SysError (" R_UseWSurfProgram: Failed to load program!" );
386+ Sys_Error (" R_UseWSurfProgram: Failed to load program!" );
371387 }
372388}
373389
0 commit comments