diff options
author | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-11-05 03:46:06 +0100 |
---|---|---|
committer | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-11-05 04:24:19 +0100 |
commit | 19038db4898bc059fe78d21ba9a400b5277dd2dd (patch) | |
tree | 78ff28c93f700da54a7d452ae82dfa4714cab3c7 /src/video_core/renderer_opengl/gl_state.h | |
parent | Implement multi-target viewports and blending (diff) | |
download | yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar.gz yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar.bz2 yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar.lz yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar.xz yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.tar.zst yuzu-19038db4898bc059fe78d21ba9a400b5277dd2dd.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index a027ca33c..b8cf1f637 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -56,13 +56,14 @@ public: GLuint index; } primitive_restart; // GL_PRIMITIVE_RESTART - struct { + struct ColorMask { GLboolean red_enabled; GLboolean green_enabled; GLboolean blue_enabled; GLboolean alpha_enabled; - } color_mask; // GL_COLOR_WRITEMASK - + }; + std::array<ColorMask, Tegra::Engines::Maxwell3D::Regs::NumRenderTargets> + color_mask; // GL_COLOR_WRITEMASK struct { bool test_enabled; // GL_STENCIL_TEST struct { @@ -198,6 +199,7 @@ private: static bool s_rgb_used; void ApplySRgb() const; void ApplyCulling() const; + void ApplyColorMask() const; void ApplyDepth() const; void ApplyPrimitiveRestart() const; void ApplyStencilTest() const; |