mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-22 17:41:11 +00:00
IOQ3 commit 2336
This commit is contained in:
parent
c648285b8f
commit
2d602bea2b
1 changed files with 6 additions and 20 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue