Avoid causing a gl error on startup on core contexts.

This commit is contained in:
Henrik Rydgård 2018-02-08 00:44:00 +01:00
parent 481134bfe9
commit 1eec30dac2

View File

@ -41,7 +41,9 @@ void GLQueueRunner::CreateDeviceObjects() {
populate(GL_RENDERER);
populate(GL_VERSION);
populate(GL_SHADING_LANGUAGE_VERSION);
populate(GL_EXTENSIONS); // TODO: Not OK to query this in core profile!
if (!gl_extensions.IsCoreContext) { // Not OK to query this in core profile!
populate(GL_EXTENSIONS);
}
}
void GLQueueRunner::DestroyDeviceObjects() {