wined3d: Only set GL_SHADER_OPERATION_NV to GL_NONE for mapped stages.

This commit is contained in:
H. Verbeet 2007-06-18 00:10:54 +02:00 committed by Alexandre Julliard
parent 5194ce1972
commit 9f8083c646
1 changed files with 3 additions and 3 deletions

View File

@ -1674,9 +1674,9 @@ 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)) {
glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_NONE);
if(GL_SUPPORT(NV_TEXTURE_SHADER2)) {
glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_NONE);
}
}
/* All done */
return;