summaryrefslogtreecommitdiff
path: root/source/gl_world.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-03-03 19:39:22 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-03-03 19:39:22 +0000
commit8d5345be32ece1e2e396d2bd3499ded790cb9a8c (patch)
tree663dd8d43a5362dda8059613d980011dc2cc5b32 /source/gl_world.c
parentbcabef4d17896c4dd5b4f0b67f26cabff4b167ea (diff)
Don't build client side dynamic lighting code unless software refresh is in use.
Renamed USE_DYNAMIC to USE_DLIGHTS.
Diffstat (limited to 'source/gl_world.c')
-rw-r--r--source/gl_world.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gl_world.c b/source/gl_world.c
index a83eec9..6edc24b 100644
--- a/source/gl_world.c
+++ b/source/gl_world.c
@@ -74,7 +74,7 @@ qboolean GL_LightPoint( vec3_t origin, vec3_t color ) {
return qtrue;
}
-#if USE_DYNAMIC
+#if USE_DLIGHTS
static void GL_MarkLights_r( mnode_t *node, dlight_t *light ) {
vec_t dot;
int count;
@@ -172,7 +172,7 @@ void _R_LightPoint( vec3_t origin, vec3_t color ) {
VectorSet( color, 1, 1, 1 );
}
-#if USE_DYNAMIC
+#if USE_DLIGHTS
if( gl_dynamic->integer ) {
// add dynamic lights
GL_AddLights( origin, color );
@@ -328,7 +328,7 @@ void GL_DrawBspModel( mmodel_t *model ) {
glr.drawframe++;
-#if USE_DYNAMIC
+#if USE_DLIGHTS
if( gl_dynamic->integer ) {
GL_TransformLights( model );
}
@@ -456,7 +456,7 @@ static void GL_WorldNode_r( mnode_t *node, int clipflags ) {
void GL_DrawWorld( void ) {
GL_MarkLeaves();
-#if USE_DYNAMIC
+#if USE_DLIGHTS
if( gl_dynamic->integer ) {
GL_MarkLights();
}