summaryrefslogtreecommitdiff
path: root/src/rend2/tr_shade.c
diff options
context:
space:
mode:
authorJames Canete <use.less01@gmail.com>2012-10-28 20:22:13 +0000
committerTim Angus <tim@ngus.net>2013-01-12 21:20:55 +0000
commit8de7ce8c82617c0ced22227a7853c1f4b8d46157 (patch)
tree4968611ee5c5d8aa6aae5bdaa726fab7bd6819d6 /src/rend2/tr_shade.c
parent0029b7619d0710f2fd2a4e817bb037bbb036b706 (diff)
Fix FBO_*() usage when framebuffers are unavailable or undesired.
Diffstat (limited to 'src/rend2/tr_shade.c')
-rw-r--r--src/rend2/tr_shade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rend2/tr_shade.c b/src/rend2/tr_shade.c
index c74409e4..e0452d0c 100644
--- a/src/rend2/tr_shade.c
+++ b/src/rend2/tr_shade.c
@@ -1713,7 +1713,7 @@ void RB_StageIteratorGeneric( void )
//
// pshadows!
//
- if ( tess.pshadowBits && tess.shader->sort <= SS_OPAQUE
+ if (glRefConfig.framebufferObject && tess.pshadowBits && tess.shader->sort <= SS_OPAQUE
&& !(tess.shader->surfaceFlags & (SURF_NODLIGHT | SURF_SKY) ) ) {
ProjectPshadowVBOGLSL();
}