Qt: Fix OpenGL init.

Needs to check extensions before creating thin3d, as others do.
This commit is contained in:
Unknown W. Brackets 2017-12-26 16:04:19 -08:00
parent 766b40aad8
commit 56835fc017
3 changed files with 6 additions and 0 deletions

View File

@ -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();

View File

@ -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" />

View File

@ -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">