diff options
| author | 2016-03-14 21:41:18 -0400 | |
|---|---|---|
| committer | 2016-03-14 21:59:16 -0400 | |
| commit | 69a38e7b5421cbef2658ada9895f12abc2513c34 (patch) | |
| tree | 129d198533cef469a447dbdf7c68cffef0094170 /src | |
| parent | Merge pull request #1409 from JamePeng/Reorganize-NDM (diff) | |
| download | yuzu-69a38e7b5421cbef2658ada9895f12abc2513c34.tar.gz yuzu-69a38e7b5421cbef2658ada9895f12abc2513c34.tar.xz yuzu-69a38e7b5421cbef2658ada9895f12abc2513c34.zip | |
SDL2: Explicitly use RGB8 color buffer.
Diffstat (limited to '')
| -rw-r--r-- | src/citra/emu_window/emu_window_sdl2.cpp | 4 |
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() { | |||
| 73 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); | 73 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); |
| 74 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); | 74 | SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); |
| 75 | SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); | 75 | SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
| 76 | SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); | ||
| 77 | SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); | ||
| 78 | SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); | ||
| 79 | SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); | ||
| 76 | 80 | ||
| 77 | std::string window_title = Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); | 81 | std::string window_title = Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); |
| 78 | render_window = SDL_CreateWindow(window_title.c_str(), | 82 | render_window = SDL_CreateWindow(window_title.c_str(), |