diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2021-12-22 23:23:15 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-24 05:10:28 -0800 |
commit | 1904be03703b13d9e021407507ed6d0e97785f5f (patch) | |
tree | ed49e4cc3bf36622817d2f47cb3b5d8465e9edb1 /Userland/Libraries/LibGL | |
parent | 24c76741e85801f720d39468672e8a9f64c42977 (diff) | |
download | serenity-1904be03703b13d9e021407507ed6d0e97785f5f.zip |
LibSoftGPU: Remove OpenGL type for culled side selection
Replaces the GLenum in RasterizerConfig, that selects the triangle sides
to be culled, with two booleans.
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp index 3707b43fc4..ef3b5e54fd 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp +++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp @@ -917,7 +917,8 @@ void SoftwareGLContext::gl_cull_face(GLenum cull_mode) m_culled_sides = cull_mode; auto rasterizer_options = m_rasterizer.options(); - rasterizer_options.culled_sides = cull_mode; + rasterizer_options.cull_back = cull_mode == GL_BACK || cull_mode == GL_FRONT_AND_BACK; + rasterizer_options.cull_front = cull_mode == GL_FRONT || cull_mode == GL_FRONT_AND_BACK; m_rasterizer.set_options(rasterizer_options); } |