[PATCH 2/5] wined3d: Bind sampler objects to the correct texture stage.

Henri Verbeet hverbeet at codeweavers.com
Wed Apr 15 04:07:11 CDT 2015


On current hardware this generally only makes a difference for vertex
textures. This fixes a regression introduced by commit
c6232e1d111ae8929c53c02211cde4a9777311fd.
---
 dlls/wined3d/state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index b3ac4f1..1eda0cb 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -3717,7 +3717,7 @@ static void sampler(struct wined3d_context *context, const struct wined3d_state
 
             if (sampler)
             {
-                GL_EXTCALL(glBindSampler(sampler_idx, sampler->name));
+                GL_EXTCALL(glBindSampler(mapped_stage, sampler->name));
                 checkGLcall("glBindSampler");
             }
         }
-- 
1.7.10.4




More information about the wine-patches mailing list