From 1eec30dac2ee5089f72e5430d4841cd93cd31841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 8 Feb 2018 00:44:00 +0100 Subject: [PATCH] Avoid causing a gl error on startup on core contexts. --- ext/native/thin3d/GLQueueRunner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/native/thin3d/GLQueueRunner.cpp b/ext/native/thin3d/GLQueueRunner.cpp index 466a6d958a..87e7ef1d53 100644 --- a/ext/native/thin3d/GLQueueRunner.cpp +++ b/ext/native/thin3d/GLQueueRunner.cpp @@ -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() {