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 19, 2024
1 parent a3ec48b commit f83bcd7
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 @@ -1979,7 +1979,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 @@ -2047,7 +2047,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 f83bcd7

Please sign in to comment.