diff options
author | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-24 22:09:40 +0200 |
---|---|---|
committer | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-10-28 05:13:55 +0100 |
commit | 0287b2be6d1edeecea26250e5cd8d3067ff614af (patch) | |
tree | 5f7a74be1a36768819c2cd413b1ad05fd8086f90 /src/video_core/renderer_opengl/gl_state.h | |
parent | Merge pull request #1602 from DarkLordZach/key-derivation-isxdigit (diff) | |
download | yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.gz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.bz2 yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.lz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.xz yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.tar.zst yuzu-0287b2be6d1edeecea26250e5cd8d3067ff614af.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 4334b0d35..9e2c573b5 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -36,6 +36,10 @@ constexpr TextureUnit ProcTexDiffLUT{9}; class OpenGLState { public: struct { + bool enabled; // GL_FRAMEBUFFER_SRGB + } framebuffer_srgb; + + struct { bool enabled; // GL_CULL_FACE GLenum mode; // GL_CULL_FACE_MODE GLenum front_face; // GL_FRONT_FACE @@ -161,7 +165,12 @@ public: static OpenGLState GetCurState() { return cur_state; } - + static bool GetsRGBUsed() { + return s_rgb_used; + } + static void ClearsRGBUsed() { + s_rgb_used = false; + } /// Apply this state as the current OpenGL state void Apply() const; @@ -176,6 +185,9 @@ public: private: static OpenGLState cur_state; + // Workaround for sRGB problems caused by + // QT not supporting srgb output + static bool s_rgb_used; }; } // namespace OpenGL |