Henri Verbeet : wined3d: Print a warning when the stage isn' t mapped to a valid texture unit in tex_coordindex().

Alexandre Julliard julliard at winehq.org
Wed Mar 25 10:31:29 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Mar 25 10:12:26 2009 +0100

wined3d: Print a warning when the stage isn't mapped to a valid texture unit in tex_coordindex().

---

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

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 720a548..257feb2 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -3103,6 +3103,7 @@ static void tex_coordindex(DWORD state, IWineD3DStateBlockImpl *stateblock, Wine
     }
 
     if(mapped_stage >= GL_LIMITS(fragment_samplers)) {
+        WARN("stage %u not mapped to a valid texture unit (%u)\n", stage, mapped_stage);
         return;
     }
     GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB + mapped_stage));




More information about the wine-cvs mailing list