mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 05:05:44 +00:00
Just warn for programs found that have no shaders attached
* Seen in Clockwork Empires, eventually this won't be a problem as the programs will get trimmed via not being referenced in the captured frame
This commit is contained in:
@@ -596,9 +596,16 @@ bool GLResourceManager::Serialise_InitialState(GLResource res)
|
||||
gl.glGetProgramiv(initProg, eGL_LINK_STATUS, &status);
|
||||
if(status == 0)
|
||||
{
|
||||
char buffer[1025] = {0};
|
||||
gl.glGetProgramInfoLog(initProg, 1024, NULL, buffer);
|
||||
RDCERR("Link error: %s", buffer);
|
||||
if(details.shaders.size() == 0)
|
||||
{
|
||||
RDCWARN("No shaders attached to program");
|
||||
}
|
||||
else
|
||||
{
|
||||
char buffer[1025] = {0};
|
||||
gl.glGetProgramInfoLog(initProg, 1024, NULL, buffer);
|
||||
RDCERR("Link error: %s", buffer);
|
||||
}
|
||||
}
|
||||
|
||||
SerialiseProgramUniforms(gl, m_pSerialiser, initProg, &details.locationTranslate, false);
|
||||
|
||||
Reference in New Issue
Block a user