OSX was choking on transformfeedback shaders. Make failure to load such shaders non-critical to the shader loading process. Also clean up glColorMask state properly in wlsky.
This commit is contained in:
@@ -470,6 +470,12 @@ void LLViewerShaderMgr::setShaders()
|
||||
if (loaded)
|
||||
{
|
||||
loaded = loadTransformShaders();
|
||||
if(!loaded) //Failed to load. Just wipe all transformfeedback shaders and continue like nothing happened.
|
||||
{
|
||||
mVertexShaderLevel[SHADER_TRANSFORM] = 0;
|
||||
unloadShaderClass(SHADER_TRANSFORM);
|
||||
loaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (loaded)
|
||||
|
||||
Reference in New Issue
Block a user