mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 12:47:44 +00:00
wined3d: Only set GL_SHADER_OPERATION_NV to GL_NONE for supported units.
This commit is contained in:
parent
9ed84211c1
commit
25c673225b
1 changed files with 1 additions and 1 deletions
|
@ -1707,7 +1707,7 @@ static void tex_colorop(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
|
|||
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
|
||||
checkGLcall("glDisable(GL_TEXTURE_CUBE_MAP_ARB)");
|
||||
}
|
||||
if(GL_SUPPORT(NV_TEXTURE_SHADER2)) {
|
||||
if(GL_SUPPORT(NV_TEXTURE_SHADER2) && mapped_stage < GL_LIMITS(textures)) {
|
||||
glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_NONE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue