diff options
-rw-r--r-- | src/renderer/tr_backend.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/renderer/tr_backend.c b/src/renderer/tr_backend.c index acf82bd0..6b34a813 100644 --- a/src/renderer/tr_backend.c +++ b/src/renderer/tr_backend.c @@ -135,30 +135,16 @@ void GL_Cull( int cullType ) { } else { + qboolean cullFront; qglEnable( GL_CULL_FACE ); - if ( cullType == CT_BACK_SIDED ) + cullFront = (cullType == CT_FRONT_SIDED); + if ( backEnd.viewParms.isMirror ) { - if ( backEnd.viewParms.isMirror ) - { - qglCullFace( GL_FRONT ); - } - else - { - qglCullFace( GL_BACK ); - } - } - else - { - if ( backEnd.viewParms.isMirror ) - { - qglCullFace( GL_BACK ); - } - else - { - qglCullFace( GL_FRONT ); - } + cullFront = !cullFront; } + + qglCullFace( cullFront ? GL_FRONT : GL_BACK ); } } |