wined3d: Print a warning when the stage isn't mapped to a valid texture unit in tex_coordindex().
This commit is contained in:
parent
1192c9995c
commit
8255dde127
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue