summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-15 20:48:59 +0100
committerbunnei <bunneidev@gmail.com>2016-03-15 20:48:59 +0100
commitbecb758a84c3086b7d0cc14dd6312a2f194581c2 (patch)
treead6ff6a55453aadf36b1cabc8a5fbdf25e1c447f /src
parentMerge pull request #1528 from MerryMage/citra-shutdown (diff)
parentSDL2: Explicitly use RGB8 color buffer. (diff)
downloadyuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar.gz
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar.bz2
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar.lz
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar.xz
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.tar.zst
yuzu-becb758a84c3086b7d0cc14dd6312a2f194581c2.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra/emu_window/emu_window_sdl2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra/emu_window/emu_window_sdl2.cpp b/src/citra/emu_window/emu_window_sdl2.cpp
index 1fed82e78..924189f4c 100644
--- a/src/citra/emu_window/emu_window_sdl2.cpp
+++ b/src/citra/emu_window/emu_window_sdl2.cpp
@@ -73,6 +73,10 @@ EmuWindow_SDL2::EmuWindow_SDL2() {
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+ SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
+ SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
+ SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
+ SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);
std::string window_title = Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc);
render_window = SDL_CreateWindow(window_title.c_str(),