Merge changes to GL_Cull from Rend2 into opengl1 renderer, behavior is the same.

This commit is contained in:
Zack Middleton 2012-10-26 07:40:57 +00:00
parent 3dfd2dac7e
commit 6bc0e6fae4

View file

@ -134,30 +134,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 )
{
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 );
}
}