summaryrefslogtreecommitdiff
path: root/src/citra
diff options
context:
space:
mode:
authorGravatar bunnei2016-05-07 00:33:06 -0400
committerGravatar bunnei2016-05-07 00:33:06 -0400
commit8043a35cf948922a06f18d3978fc40617f313cb7 (patch)
treed77167f5b7fba155f73fd68af7e21f78b4f00de7 /src/citra
parentMerge pull request #1764 from wwylele/how-can-i-find-this-if-i-have-only-decr... (diff)
parentFrontends, VideoCore: Move glad initialisation to the frontend (diff)
downloadyuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.gz
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.tar.xz
yuzu-8043a35cf948922a06f18d3978fc40617f313cb7.zip
Merge pull request #1544 from linkmauve/move-glad-init
Move glad initialisation to the frontend
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/emu_window/emu_window_sdl2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra/emu_window/emu_window_sdl2.cpp b/src/citra/emu_window/emu_window_sdl2.cpp
index 924189f4c..12cdd9d95 100644
--- a/src/citra/emu_window/emu_window_sdl2.cpp
+++ b/src/citra/emu_window/emu_window_sdl2.cpp
@@ -9,6 +9,8 @@
9#define SDL_MAIN_HANDLED 9#define SDL_MAIN_HANDLED
10#include <SDL.h> 10#include <SDL.h>
11 11
12#include <glad/glad.h>
13
12#include "common/key_map.h" 14#include "common/key_map.h"
13#include "common/logging/log.h" 15#include "common/logging/log.h"
14#include "common/scm_rev.h" 16#include "common/scm_rev.h"
@@ -98,6 +100,11 @@ EmuWindow_SDL2::EmuWindow_SDL2() {
98 exit(1); 100 exit(1);
99 } 101 }
100 102
103 if (!gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress))) {
104 LOG_CRITICAL(Frontend, "Failed to initialize GL functions! Exiting...");
105 exit(1);
106 }
107
101 OnResize(); 108 OnResize();
102 OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size); 109 OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
103 SDL_PumpEvents(); 110 SDL_PumpEvents();