Skip to content

Commit e7884db

Browse files
committed
OpenGL: fix environment-mapping texcoords in VBO shaders
1 parent 526944c commit e7884db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/renderer/tr_vbo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static qboolean isStaticTCgen( shaderStage_t *stage, int bundle )
401401
case TCGEN_TEXTURE:
402402
return qtrue;
403403
case TCGEN_ENVIRONMENT_MAPPED:
404-
if ( bundle == 0 && isStaticTCmod( &stage->bundle[bundle] ) ) {
404+
if ( bundle == 0 && stage->bundle[bundle].numTexMods == 0 ) {
405405
stage->tessFlags |= TESS_ENV0 << bundle;
406406
stage->tessFlags &= ~( TESS_ST0 << bundle );
407407
return qtrue;

0 commit comments

Comments
 (0)