From 56835fc01778fd92b2dbca0ba146c20c482e873d Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 26 Dec 2017 16:04:19 -0800 Subject: [PATCH] Qt: Fix OpenGL init. Needs to check extensions before creating thin3d, as others do. --- Qt/QtMain.h | 2 ++ ext/native/native.vcxproj | 1 + ext/native/native.vcxproj.filters | 3 +++ 3 files changed, 6 insertions(+) diff --git a/Qt/QtMain.h b/Qt/QtMain.h index 0e511c846c..f4f1b3c5c2 100644 --- a/Qt/QtMain.h +++ b/Qt/QtMain.h @@ -25,6 +25,7 @@ QTM_USE_NAMESPACE #include "base/timeutil.h" #include "file/zip_read.h" #include "gfx/gl_common.h" +#include "gfx_es2/gpu_features.h" #include "input/input_state.h" #include "input/keycodes.h" #include "thin3d/thin3d.h" @@ -43,6 +44,7 @@ void SimulateGamepad(); class QtDummyGraphicsContext : public DummyGraphicsContext { public: QtDummyGraphicsContext() { + CheckGLExtensions(); draw_ = Draw::T3DCreateGLContext(); SetGPUBackend(GPUBackend::OPENGL); bool success = draw_->CreatePresets(); diff --git a/ext/native/native.vcxproj b/ext/native/native.vcxproj index b8db0d2f53..9ccbc1e644 100644 --- a/ext/native/native.vcxproj +++ b/ext/native/native.vcxproj @@ -192,6 +192,7 @@ + diff --git a/ext/native/native.vcxproj.filters b/ext/native/native.vcxproj.filters index 175c41bf21..bec0f42cee 100644 --- a/ext/native/native.vcxproj.filters +++ b/ext/native/native.vcxproj.filters @@ -329,6 +329,9 @@ ui + + base +