diff options
author | Marek Olšák <[email protected]> | 2020-02-19 21:43:56 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-26 22:10:35 +0000 |
commit | 4449611ffbb0087a6d2407fb0d25496806df157b (patch) | |
tree | e9014574986e9de9ee0d16e05c2c8cb361d47ac1 /src | |
parent | aae09ffb6eee6c41c73962c08f315a545c5e7dfe (diff) |
mesa: call FLUSH_VERTICES before updating CoordReplace
Reviewed-by: Mathias Fröhlich <[email protected]>
Cc: 20.0 <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3947>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3947>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index c9fcce2faf3..5d0dc6cc4e9 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 ); |