mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +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
|
||||
{
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue