summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-09 03:45:01 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-09 03:45:01 +0200
commit8284658bac04837756287d2f6b36485c8a2833dc (patch)
tree38c2ee0bae55ed323cc7fd501acd8baea1dfc6f7 /src/video_core/renderer_opengl
parentconfigure_audio: Use u8 for volume value (diff)
downloadyuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.gz
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.bz2
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.lz
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.xz
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.tar.zst
yuzu-8284658bac04837756287d2f6b36485c8a2833dc.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index a718bff7a..c12929de6 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -229,9 +229,6 @@ void RendererOpenGL::LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color
}
void RendererOpenGL::InitOpenGLObjects() {
- glClearColor(Settings::values.bg_red.GetValue(), Settings::values.bg_green.GetValue(),
- Settings::values.bg_blue.GetValue(), 0.0f);
-
// Create shader programs
OGLShader vertex_shader;
vertex_shader.Create(HostShaders::OPENGL_PRESENT_VERT, GL_VERTEX_SHADER);
@@ -337,8 +334,9 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture,
void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
if (renderer_settings.set_background_color) {
// Update background color before drawing
- glClearColor(Settings::values.bg_red.GetValue(), Settings::values.bg_green.GetValue(),
- Settings::values.bg_blue.GetValue(), 0.0f);
+ glClearColor(Settings::values.bg_red.GetValue() / 255.0f,
+ Settings::values.bg_green.GetValue() / 255.0f,
+ Settings::values.bg_blue.GetValue() / 255.0f, 1.0f);
}
// Set projection matrix