diff options
author | James Canete <use.less01@gmail.com> | 2012-10-28 20:22:13 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:20:55 +0000 |
commit | 8de7ce8c82617c0ced22227a7853c1f4b8d46157 (patch) | |
tree | 4968611ee5c5d8aa6aae5bdaa726fab7bd6819d6 /src/rend2/tr_shade.c | |
parent | 0029b7619d0710f2fd2a4e817bb037bbb036b706 (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.c | 2 |
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(); } |