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:
baldurk
2014-12-17 20:57:49 +00:00
parent 48bf8290df
commit b1150987a4
+10 -3
View File
@@ -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);