X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Ftexenv.c;h=0825e220a216b32937ac2a6923e6323ff904437f;hb=0ca266025ab309d538ed8c804cb46d2945c6a547;hp=c9fcce2faf3d47a06e972c24b79c47cd579d2f88;hpb=e04f95057fc6fdf5815815044556a5902211dac5;p=mesa.git diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index c9fcce2faf3..0825e220a21 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main/texenv.c @@ -491,16 +491,17 @@ _mesa_texenvfv_indexed( struct gl_context* ctx, GLuint texunit, GLenum target, if (iparam0 == GL_TRUE) { if (ctx->Point.CoordReplace & (1u << texunit)) return; + FLUSH_VERTICES(ctx, _NEW_POINT); ctx->Point.CoordReplace |= (1u << texunit); } else if (iparam0 == GL_FALSE) { if (~(ctx->Point.CoordReplace) & (1u << texunit)) return; + FLUSH_VERTICES(ctx, _NEW_POINT); ctx->Point.CoordReplace &= ~(1u << texunit); } else { _mesa_error( ctx, GL_INVALID_VALUE, "glTexEnv(param=0x%x)", iparam0); return; } - FLUSH_VERTICES(ctx, _NEW_POINT); } else { _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname=0x%x)", pname ); @@ -740,8 +741,6 @@ _mesa_gettexenvfv_indexed( GLuint texunit, GLenum target, GLenum pname, GLfloat return; if (pname == GL_TEXTURE_ENV_COLOR) { - if(ctx->NewState & (_NEW_BUFFERS | _NEW_FRAG_CLAMP)) - _mesa_update_state(ctx); if (_mesa_get_clamp_fragment_color(ctx, ctx->DrawBuffer)) COPY_4FV( params, texUnit->EnvColor ); else