mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-23 12:42:36 +00:00
Flip culling for mirrored models.
This commit is contained in:
parent
2b57223b14
commit
47706299a5
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ void GL_BindToTMU( image_t *image, int tmu )
|
|||
** GL_Cull
|
||||
*/
|
||||
void GL_Cull( int cullType ) {
|
||||
// Makro - flip culling if needed
|
||||
qboolean flip = (backEnd.currentEntity != NULL && backEnd.currentEntity->mirrored != qfalse && cullType != CT_TWO_SIDED);
|
||||
cullType ^= flip; // this assumes CT_BACK_SIDED and CT_FRONT_SIDED are 0 or 1
|
||||
|
||||
if ( glState.faceCulling == cullType ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue