mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +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:
parent
c720cd00db
commit
24c76741e8
Notes:
sideshowbarker
2024-07-17 22:15:31 +09:00
Author: https://github.com/sunverwerth
Commit: 24c76741e8
Pull-request: https://github.com/SerenityOS/serenity/pull/11288
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta
3 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue