Permalink
Browse files

Qt: Fix OpenGL init.

Needs to check extensions before creating thin3d, as others do.
  • Loading branch information...
unknownbrackets committed Dec 27, 2017
1 parent 766b40a commit 56835fc01778fd92b2dbca0ba146c20c482e873d
Showing with 6 additions and 0 deletions.
  1. +2 −0 Qt/QtMain.h
  2. +1 −0 ext/native/native.vcxproj
  3. +3 −0 ext/native/native.vcxproj.filters
View
@@ -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();
@@ -192,6 +192,7 @@
<None Include="math\fast\fast_matrix_neon.S" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\Qt\QtMain.h" />
<ClInclude Include="base\backtrace.h" />
<ClInclude Include="base\basictypes.h" />
<ClInclude Include="base\buffer.h" />
@@ -329,6 +329,9 @@
<ClInclude Include="ui\ui_tween.h">
<Filter>ui</Filter>
</ClInclude>
<ClInclude Include="..\..\Qt\QtMain.h">
<Filter>base</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="gfx\gl_debug_log.cpp">

0 comments on commit 56835fc

Please sign in to comment.