Henri Verbeet : wined3d: Also invalidate STATE_SHADER_RESOURCE_BINDING in wined3d_texture_bind_and_dirtify ().
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 18 09:22:17 CDT 2015
Module: wine
Branch: master
Commit: 8f6f9096d71c09d6eaae422b333756997f6ef15e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f6f9096d71c09d6eaae422b333756997f6ef15e
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Aug 18 11:24:09 2015 +0200
wined3d: Also invalidate STATE_SHADER_RESOURCE_BINDING in wined3d_texture_bind_and_dirtify().
---
dlls/wined3d/texture.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 82694bb..27e0ecd 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -273,6 +273,9 @@ void wined3d_texture_bind_and_dirtify(struct wined3d_texture *texture,
active_sampler = context->rev_tex_unit_map[context->active_texture];
if (active_sampler != WINED3D_UNMAPPED_STAGE)
context_invalidate_state(context, STATE_SAMPLER(active_sampler));
+ /* FIXME: Ideally we'd only do this when touching a binding that's used by
+ * a shader. */
+ context_invalidate_state(context, STATE_SHADER_RESOURCE_BINDING);
wined3d_texture_bind(texture, context, srgb);
}
More information about the wine-cvs
mailing list