From fe5efe8b0b883c1233094572fe1a024d98b7e6a8 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 22 Aug 2007 22:41:41 +0000 Subject: [PATCH] fix minimal builds and d3d build git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2608 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/renderer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/client/renderer.c b/engine/client/renderer.c index 70cec952a..8b8cc54d1 100644 --- a/engine/client/renderer.c +++ b/engine/client/renderer.c @@ -319,7 +319,8 @@ cvar_t gl_smoothfont = SCVAR ("gl_smoothfont", "1"); cvar_t gl_specular = SCVAR ("gl_specular", "0"); #endif -// The callbacks are not in D3D yet +// The callbacks are not in D3D yet (also ugly way of seperating this) +#ifdef RGLQUAKE cvar_t gl_texture_anisotropic_filtering = SCVARFC("gl_texture_anisotropic_filtering", "0", CVAR_ARCHIVE | CVAR_RENDERERCALLBACK, GL_Texture_Anisotropic_Filtering_Callback); @@ -329,6 +330,7 @@ cvar_t gl_texturemode = SCVARFC("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST cvar_t gl_texturemode2d = SCVARFC("gl_texturemode2d", "GL_LINEAR", CVAR_ARCHIVE | CVAR_RENDERERCALLBACK, GL_Texturemode2d_Callback); +#endif cvar_t gl_triplebuffer = SCVARF ("gl_triplebuffer", "1", CVAR_ARCHIVE); @@ -455,8 +457,12 @@ void GLRenderer_Init(void) Cvar_Register (&gl_overbright_all, GRAPHICALNICETIES); Cvar_Register (&gl_dither, GRAPHICALNICETIES); Cvar_Register (&r_fb_bmodels, GRAPHICALNICETIES); +#ifdef MD2MODELS Cvar_Register (&gl_loadmd2, GRAPHICALNICETIES); +#endif +#ifdef MD3MODELS Cvar_Register (&gl_loadmd3, GRAPHICALNICETIES); +#endif Cvar_Register (&gl_ati_truform, GRAPHICALNICETIES); Cvar_Register (&gl_ati_truform_type, GRAPHICALNICETIES);