Matteo Bruni : wined3d: Invalidate shader resource bindings after binding texture view.

Alexandre Julliard julliard at winehq.org
Fri Oct 12 18:00:41 CDT 2018


Module: wine
Branch: master
Commit: 237136d2f7a92300feb7342b3228e9b31fbcc66d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=237136d2f7a92300feb7342b3228e9b31fbcc66d

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Fri Oct 12 15:39:55 2018 +0200

wined3d: Invalidate shader resource bindings after binding texture view.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/view.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c
index 3662250..7bb8b81 100644
--- a/dlls/wined3d/view.c
+++ b/dlls/wined3d/view.c
@@ -234,6 +234,9 @@ static void create_texture_view(struct wined3d_gl_view *view, GLenum view_target
         wined3d_gl_texture_swizzle_from_color_fixup(swizzle, view_format->color_fixup);
         gl_info->gl_ops.gl.p_glTexParameteriv(view->target, GL_TEXTURE_SWIZZLE_RGBA, swizzle);
         checkGLcall("set format swizzle");
+
+        context_invalidate_compute_state(context, STATE_COMPUTE_SHADER_RESOURCE_BINDING);
+        context_invalidate_state(context, STATE_GRAPHICS_SHADER_RESOURCE_BINDING);
     }
 
     context_release(context);




More information about the wine-cvs mailing list