From 11c3721db4e4e1b34970bb33b40d44c76a697f80 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Thu, 23 Jan 2020 22:30:36 -0300 Subject: [PATCH] Fix warnings around load_shaders --- src/doomdef.h | 2 +- src/hardware/r_opengl/r_opengl.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index c1d6d78ef..533546303 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -620,7 +620,7 @@ extern const char *compdate, *comptime, *comprevision, *compbranch; /// SRB2CB itself ported this from PrBoom+ #define NEWCLIP -/// Hardware renderer: OpenGL +/// OpenGL shaders #define GL_SHADERS /// Handle touching sector specials in P_PlayerAfterThink instead of P_PlayerThink. diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index f8a92ed87..2a373b68a 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1871,8 +1871,13 @@ static void load_shaders(FSurfaceInfo *Surface, GLRGBAFloat *poly, GLRGBAFloat * pglUseProgram(0); } else -#endif pglUseProgram(0); +#else + (void)Surface; + (void)poly; + (void)tint; + (void)fade; +#endif } // -----------------+