Stefan Dösinger : wined3d: Do not try to disable unsupported texture units.

Alexandre Julliard julliard at winehq.org
Wed Nov 28 08:01:44 CST 2007


Module: wine
Branch: master
Commit: 3f3284749441d3e9db84e43204673e67d8edeef1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3f3284749441d3e9db84e43204673e67d8edeef1

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Nov 28 12:13:08 2007 +0100

wined3d: Do not try to disable unsupported texture units.

---

 dlls/wined3d/state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index ce1453d..1e61e1a 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2353,7 +2353,7 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
                 state_alpha(WINED3DRS_COLORKEYENABLE, stateblock, context);
             }
         }
-    } else if(sampler < GL_LIMITS(texture_stages)) {
+    } else if(mapped_stage < GL_LIMITS(textures)) {
         if(sampler < stateblock->lowest_disabled_stage) {
             /* TODO: What should I do with pixel shaders here ??? */
             if(!isStateDirty(context, STATE_TEXTURESTAGE(sampler, WINED3DTSS_COLOROP))) {




More information about the wine-cvs mailing list