From 9b822244eec191c268f8339a961e347da2962a7d Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Fri, 19 Aug 2005 15:46:31 +0000 Subject: [PATCH] Fixes to minimal build. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1236 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_draw.c | 4 ++++ 1 file changed, 4 insertions(+) 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);