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

This commit is contained in:
Henri Verbeet 2009-03-25 10:12:26 +01:00 committed by Alexandre Julliard
parent 1192c9995c
commit 8255dde127
1 changed files with 1 additions and 0 deletions

View File

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