Skip to content

Commit

Permalink
OpenGL: fix environment-mapping texcoords in VBO shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
ec- committed Apr 14, 2024
1 parent 526944c commit e7884db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderer/tr_vbo.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ static qboolean isStaticTCgen( shaderStage_t *stage, int bundle )
case TCGEN_TEXTURE:
return qtrue;
case TCGEN_ENVIRONMENT_MAPPED:
if ( bundle == 0 && isStaticTCmod( &stage->bundle[bundle] ) ) {
if ( bundle == 0 && stage->bundle[bundle].numTexMods == 0 ) {
stage->tessFlags |= TESS_ENV0 << bundle;
stage->tessFlags &= ~( TESS_ST0 << bundle );
return qtrue;
Expand Down

0 comments on commit e7884db

Please sign in to comment.