mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 10:10:39 +02:00
mesa: flush glBegin/End before changing GL_DEPTH_STENCIL_TEXTURE_MODE
Fixes: 23e81b93bb "mesa: Add core API support for GL_ARB_stencil_texturing (from 4.3)."
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8181>
This commit is contained in:
parent
35be83846e
commit
a1f16b59b3
1 changed files with 2 additions and 0 deletions
|
|
@ -506,6 +506,8 @@ set_tex_parameteri(struct gl_context *ctx,
|
|||
if (texObj->StencilSampling == stencil)
|
||||
return GL_FALSE;
|
||||
|
||||
/* This should not be restored by glPopAttrib. */
|
||||
FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT);
|
||||
texObj->StencilSampling = stencil;
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue