diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index 5f36bd961..f01b0386a 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -63,7 +63,9 @@ extern cvar_t gl_savecompressedtex; extern cvar_t gl_load24bit; +#ifdef Q3SHADERS extern cvar_t gl_blend2d; +#endif extern cvar_t con_ocranaleds; qbyte *draw_chars; // 8*8 graphic characters @@ -1935,12 +1937,14 @@ void GL_Set2D (void) qglDisable (GL_DEPTH_TEST); qglDisable (GL_CULL_FACE); +#ifdef Q3SHADERS if (gl_blend2d.value) { qglEnable (GL_BLEND); qglDisable (GL_ALPHA_TEST); } else +#endif { qglDisable (GL_BLEND); qglEnable (GL_ALPHA_TEST);