wined3d: Fix error handling in transform_texture().

This commit is contained in:
Gerald Pfeifer 2007-12-04 01:34:55 +01:00 committed by Alexandre Julliard
parent a030777f74
commit 81f32c7a38
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {