Don't print debug messages while trying to link initial contents program

This commit is contained in:
baldurk
2019-05-14 18:16:10 +01:00
parent d3d5d63b2a
commit 2f574b57c2
+6
View File
@@ -1308,6 +1308,10 @@ bool GLResourceManager::Serialise_InitialState(SerialiserType &ser, ResourceId i
// some uniforms were only intended to affect TF. Therefore set a TF mode for all varyings.
// As the initial state program is never used for TF, this wont adversely affect anything.
// don't print debug messages from these links - we know some might fail but as long as we
// eventually get one to work that's fine.
m_Driver->SuppressDebugMessages(true);
std::vector<const char *> vertexOutputsPtr;
vertexOutputsPtr.resize(vertexOutputs.size());
for(size_t i = 0; i < vertexOutputs.size(); i++)
@@ -1340,6 +1344,8 @@ bool GLResourceManager::Serialise_InitialState(SerialiserType &ser, ResourceId i
drv.glGetProgramiv(initProg, eGL_LINK_STATUS, &status);
}
m_Driver->SuppressDebugMessages(false);
if(status == 0)
{
if(numShaders == 0)