Commit b6e87d47 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Don't mess with nv texture shaders if its not supported.

parent ed3f6e8d
......@@ -1591,7 +1591,6 @@ static void activate_dimensions(DWORD stage, IWineD3DStateBlockImpl *stateblock,
checkGLcall("glDisable(GL_TEXTURE_2D)");
glEnable(GL_TEXTURE_3D);
checkGLcall("glEnable(GL_TEXTURE_3D)");
glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_3D);
}
break;
case GL_TEXTURE_CUBE_MAP_ARB:
......@@ -1604,7 +1603,6 @@ static void activate_dimensions(DWORD stage, IWineD3DStateBlockImpl *stateblock,
checkGLcall("glDisable(GL_TEXTURE_3D)");
glEnable(GL_TEXTURE_CUBE_MAP_ARB);
checkGLcall("glEnable(GL_TEXTURE_CUBE_MAP_ARB)");
glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_CUBE_MAP_ARB);
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment