mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 13:18:04 +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> (cherry picked from commita1f16b59b3) Conflicts: src/mesa/main/texparam.c
This commit is contained in:
parent
7bd9982ba1
commit
33127367ef
2 changed files with 3 additions and 1 deletions
|
|
@ -283,7 +283,7 @@
|
|||
"description": "mesa: flush glBegin/End before changing GL_DEPTH_STENCIL_TEXTURE_MODE",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "23e81b93bbe3966a842de507988eeaa7342e12ca"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -506,6 +506,8 @@ set_tex_parameteri(struct gl_context *ctx,
|
|||
if (texObj->Attrib.StencilSampling == stencil)
|
||||
return GL_FALSE;
|
||||
|
||||
/* This should not be restored by glPopAttrib. */
|
||||
FLUSH_VERTICES(ctx, _NEW_TEXTURE_OBJECT);
|
||||
texObj->Attrib.StencilSampling = stencil;
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue