summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.cpp')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp
index d5ddcd36b7..71b00eb70d 100644
--- a/Userland/Libraries/LibSoftGPU/Device.cpp
+++ b/Userland/Libraries/LibSoftGPU/Device.cpp
@@ -285,26 +285,26 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
bool pass = false;
switch (options.depth_func) {
- case GL_ALWAYS:
+ case DepthTestFunction::Always:
pass = true;
break;
- case GL_NEVER:
+ case DepthTestFunction::Never:
pass = false;
break;
- case GL_GREATER:
+ case DepthTestFunction::Greater:
pass = z > *depth;
break;
- case GL_GEQUAL:
+ case DepthTestFunction::GreaterOrEqual:
pass = z >= *depth;
break;
- case GL_NOTEQUAL:
+ case DepthTestFunction::NotEqual:
#ifdef __SSE__
pass = z != *depth;
#else
pass = bit_cast<u32>(z) != bit_cast<u32>(*depth);
#endif
break;
- case GL_EQUAL:
+ case DepthTestFunction::Equal:
#ifdef __SSE__
pass = z == *depth;
#else
@@ -322,10 +322,10 @@ static void rasterize_triangle(const RasterizerOptions& options, Gfx::Bitmap& re
pass = bit_cast<u32>(z) == bit_cast<u32>(*depth);
#endif
break;
- case GL_LEQUAL:
+ case DepthTestFunction::LessOrEqual:
pass = z <= *depth;
break;
- case GL_LESS:
+ case DepthTestFunction::Less:
pass = z < *depth;
break;
}