1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

LibSoftGPU: Remove OpenGL type for front face selection

Replaces the GLenum used for selecting the frontface in the rasterizer
config with out own enum.
This commit is contained in:
Stephan Unverwerth 2021-12-22 23:16:58 +01:00 committed by Brian Gianforcaro
parent c720cd00db
commit 24c76741e8
3 changed files with 8 additions and 3 deletions

View file

@ -904,7 +904,7 @@ void SoftwareGLContext::gl_front_face(GLenum face)
m_front_face = face;
auto rasterizer_options = m_rasterizer.options();
rasterizer_options.front_face = face;
rasterizer_options.front_face = (face == GL_CW) ? SoftGPU::WindingOrder::Clockwise : SoftGPU::WindingOrder::CounterClockwise;
m_rasterizer.set_options(rasterizer_options);
}