mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +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
3 changed files with 8 additions and 3 deletions
|
@ -634,7 +634,7 @@ void Device::draw_primitives(GLenum primitive_type, FloatMatrix4x4 const& transf
|
|||
continue;
|
||||
|
||||
if (m_options.enable_culling) {
|
||||
bool is_front = (m_options.front_face == GL_CCW ? area < 0 : area > 0);
|
||||
bool is_front = (m_options.front_face == WindingOrder::CounterClockwise ? area < 0 : area > 0);
|
||||
|
||||
if (is_front && (m_options.culled_sides == GL_FRONT || m_options.culled_sides == GL_FRONT_AND_BACK))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue