Adds GL debug labels only if they are supported (forgotten in 3db24af763
). Fixes #6495
This was SVN commit r26780.
This commit is contained in:
parent
e6dd9f944e
commit
f6837978e8
@ -355,8 +355,11 @@ public:
|
||||
m_FileDependencies = {vertexFilePath, fragmentFilePath};
|
||||
|
||||
#if !CONFIG2_GLES
|
||||
glObjectLabel(GL_SHADER, m_VertexShader, -1, vertexFilePath.string8().c_str());
|
||||
glObjectLabel(GL_SHADER, m_FragmentShader, -1, fragmentFilePath.string8().c_str());
|
||||
if (m_Device->GetCapabilities().debugLabels)
|
||||
{
|
||||
glObjectLabel(GL_SHADER, m_VertexShader, -1, vertexFilePath.string8().c_str());
|
||||
glObjectLabel(GL_SHADER, m_FragmentShader, -1, fragmentFilePath.string8().c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
CVFSFile vertexFile;
|
||||
@ -480,7 +483,10 @@ public:
|
||||
m_Program = glCreateProgram();
|
||||
|
||||
#if !CONFIG2_GLES
|
||||
glObjectLabel(GL_PROGRAM, m_Program, -1, m_Name.c_str());
|
||||
if (m_Device->GetCapabilities().debugLabels)
|
||||
{
|
||||
glObjectLabel(GL_PROGRAM, m_Program, -1, m_Name.c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
glAttachShader(m_Program, m_VertexShader);
|
||||
|
Loading…
Reference in New Issue
Block a user