Gerald Pfeifer : wined3d: Fix error handling in transform_texture().
Module: wine Branch: master Commit: 81f32c7a3804912f961e2effac5b9b6d97c3609c URL: http://source.winehq.org/git/wine.git/?a=commit;h=81f32c7a3804912f961e2effac... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Tue Dec 4 01:34:55 2007 +0100 wined3d: Fix error handling in transform_texture(). --- 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 9ff392c..5c0a7f5 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1957,7 +1957,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W return; } - if (mapped_stage < 0) return; + if (mapped_stage == -1) return; if (GL_SUPPORT(ARB_MULTITEXTURE)) { if(mapped_stage >= GL_LIMITS(textures)) {
participants (1)
-
Alexandre Julliard