Henri Verbeet : wined3d: Do not invalidate STATE_RENDER(WINED3D_RS_TWOSIDEDSTENCILMODE).
Alexandre Julliard
julliard at winehq.org
Tue Oct 13 15:42:04 CDT 2020
Module: wine
Branch: master
Commit: 1b192ce4cbd12e2a42fd59cfde73abe332a1f9ed
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1b192ce4cbd12e2a42fd59cfde73abe332a1f9ed
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Oct 13 17:08:55 2020 +0330
wined3d: Do not invalidate STATE_RENDER(WINED3D_RS_TWOSIDEDSTENCILMODE).
This is no longer used internally; two-sided stencil is handled as part of
STATE_DEPTH_STENCIL.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/texture.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 3381252e75..2f42a41754 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -510,10 +510,7 @@ static void texture2d_depth_blt_fbo(const struct wined3d_device *device, struct
if (gl_mask & GL_STENCIL_BUFFER_BIT)
{
if (gl_info->supported[EXT_STENCIL_TWO_SIDE])
- {
gl_info->gl_ops.gl.p_glDisable(GL_STENCIL_TEST_TWO_SIDE_EXT);
- context_invalidate_state(context, STATE_RENDER(WINED3D_RS_TWOSIDEDSTENCILMODE));
- }
gl_info->gl_ops.gl.p_glStencilMask(~0U);
context_invalidate_state(context, STATE_DEPTH_STENCIL);
}
@@ -5389,10 +5386,7 @@ static void ffp_blitter_clear_rendertargets(struct wined3d_device *device, unsig
if (flags & WINED3DCLEAR_STENCIL)
{
if (gl_info->supported[EXT_STENCIL_TWO_SIDE])
- {
gl_info->gl_ops.gl.p_glDisable(GL_STENCIL_TEST_TWO_SIDE_EXT);
- context_invalidate_state(context, STATE_RENDER(WINED3D_RS_TWOSIDEDSTENCILMODE));
- }
gl_info->gl_ops.gl.p_glStencilMask(~0u);
context_invalidate_state(context, STATE_DEPTH_STENCIL);
gl_info->gl_ops.gl.p_glClearStencil(stencil);
More information about the wine-cvs
mailing list