Skip to content

Commit

Permalink
ref: gl: exclude SURF_REFLECT faces from VBO
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jan 15, 2024
1 parent a2efa92 commit 4ac2499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ref/gl/gl_rsurf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ void R_GenerateVBO( void )
if( surf->lightmaptexturenum != k )
continue;

if( surf->flags & ( SURF_DRAWSKY | SURF_DRAWTURB | SURF_CONVEYOR | SURF_DRAWTURB_QUADS ) )
if( FBitSet( surf->flags, SURF_DRAWSKY | SURF_DRAWTURB | SURF_CONVEYOR | SURF_DRAWTURB_QUADS | SURF_REFLECT ))
continue;

if( R_TextureAnimation( surf ) != world->textures[j] )
Expand Down Expand Up @@ -2041,7 +2041,7 @@ void R_GenerateVBO( void )
if( surf->lightmaptexturenum != k )
continue;

if( surf->flags & ( SURF_DRAWSKY | SURF_DRAWTURB | SURF_CONVEYOR | SURF_DRAWTURB_QUADS ) )
if( FBitSet( surf->flags, SURF_DRAWSKY | SURF_DRAWTURB | SURF_CONVEYOR | SURF_DRAWTURB_QUADS | SURF_REFLECT ))
continue;

if( R_TextureAnimation( surf ) != world->textures[j] )
Expand Down

0 comments on commit 4ac2499

Please sign in to comment.