Return unless glDebugMessageCallback resolves on GLES

REVIEW: 124135
This commit is contained in:
Rohan Garg 2015-06-26 12:41:32 +02:00
parent 67734050e6
commit c22fdcf146

View file

@ -508,6 +508,11 @@ void SceneOpenGL::initDebugOutput()
}
};
// Expoxy fails to resolve glDebugMessageCallback on GLES
if (!glDebugMessageCallback) {
return;
}
glDebugMessageCallback(callback, nullptr);
// This state exists only in GL_KHR_debug