mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 13:11:30 +00:00
Merge changes to GL_Cull from Rend2 into opengl1 renderer, behavior is the same.
This commit is contained in:
parent
3dfd2dac7e
commit
6bc0e6fae4
1 changed files with 6 additions and 20 deletions
|
@ -134,30 +134,16 @@ void GL_Cull( int cullType ) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
qboolean cullFront;
|
||||||
qglEnable( GL_CULL_FACE );
|
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 );
|
cullFront = !cullFront;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
qglCullFace( GL_BACK );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( backEnd.viewParms.isMirror )
|
|
||||||
{
|
|
||||||
qglCullFace( GL_BACK );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
qglCullFace( GL_FRONT );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qglCullFace( cullFront ? GL_FRONT : GL_BACK );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue