diff options
author | bunnei <bunneidev@gmail.com> | 2015-04-04 21:14:14 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-04-04 21:14:14 +0200 |
commit | 64196976b91e4202504724d65c1c772e1c542c39 (patch) | |
tree | 153bae22824e049686724c0c4e630e3a71f979e2 /src/video_core | |
parent | Merge pull request #641 from purpasmart96/service_stubs (diff) | |
parent | Allow the user to set the background clear color during emulation (diff) | |
download | yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.gz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.bz2 yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.lz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.xz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.zst yuzu-64196976b91e4202504724d65c1c772e1c542c39.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 4273a177f..5e864b75e 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -6,6 +6,7 @@ #include "core/hw/hw.h" #include "core/hw/lcd.h" #include "core/mem_map.h" +#include "core/settings.h" #include "common/emu_window.h" #include "common/profiler_reporting.h" @@ -172,7 +173,7 @@ void RendererOpenGL::LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color * Initializes the OpenGL state and creates persistent objects. */ void RendererOpenGL::InitOpenGLObjects() { - glClearColor(1.0f, 1.0f, 1.0f, 0.0f); + glClearColor(Settings::values.bg_red, Settings::values.bg_green, Settings::values.bg_blue, 0.0f); glDisable(GL_DEPTH_TEST); // Link shaders and get variable locations |