diff options
author | bunnei <bunneidev@gmail.com> | 2016-05-07 00:33:06 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-05-07 00:33:06 -0400 |
commit | 8043a35cf948922a06f18d3978fc40617f313cb7 (patch) | |
tree | d77167f5b7fba155f73fd68af7e21f78b4f00de7 /src/citra/emu_window/emu_window_sdl2.cpp | |
parent | 14b4d971a40e23db35f5356a3df78a524d2f3306 (diff) | |
parent | aa4d4ff23c92340baa1771a7d7308d1d91d3b655 (diff) |
Merge pull request #1544 from linkmauve/move-glad-init
Move glad initialisation to the frontend
Diffstat (limited to 'src/citra/emu_window/emu_window_sdl2.cpp')
-rw-r--r-- | src/citra/emu_window/emu_window_sdl2.cpp | 7 |
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 @@ #define SDL_MAIN_HANDLED #include <SDL.h> +#include <glad/glad.h> + #include "common/key_map.h" #include "common/logging/log.h" #include "common/scm_rev.h" @@ -98,6 +100,11 @@ EmuWindow_SDL2::EmuWindow_SDL2() { exit(1); } + if (!gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress))) { + LOG_CRITICAL(Frontend, "Failed to initialize GL functions! Exiting..."); + exit(1); + } + OnResize(); OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size); SDL_PumpEvents(); |