mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-18 04:26:49 +00:00
Don't print debug messages while trying to link initial contents program
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user