From 1904be03703b13d9e021407507ed6d0e97785f5f Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Wed, 22 Dec 2021 23:23:15 +0100 Subject: LibSoftGPU: Remove OpenGL type for culled side selection Replaces the GLenum in RasterizerConfig, that selects the triangle sides to be culled, with two booleans. --- Userland/Libraries/LibGL/SoftwareGLContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGL') 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); } -- cgit v1.2.3