mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:50:21 +00:00
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 a new issue