summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-13 03:00:26 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-13 12:13:58 +0100
commit8c28d167c9e8d7aa7a66f49efebf97aaaf9951a3 (patch)
treeefe45e3abe651f7a306138496df269f872b3e26f
parentc03b21f0eac44b02b939cf27ee0e2eb43278b664 (diff)
downloadserenity-8c28d167c9e8d7aa7a66f49efebf97aaaf9951a3.zip
LibGL: Report unsupported capabilities in `glEnable` and `glDisable`
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
index 6f9403e0e0..1ffe138e75 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
@@ -723,6 +723,7 @@ void SoftwareGLContext::gl_enable(GLenum capability)
m_texcoord_generation_dirty = true;
break;
default:
+ dbgln_if(GL_DEBUG, "gl_enable({:#x}): unknown parameter", capability);
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
}
@@ -819,6 +820,7 @@ void SoftwareGLContext::gl_disable(GLenum capability)
m_texcoord_generation_dirty = true;
break;
default:
+ dbgln_if(GL_DEBUG, "gl_disable({:#x}): unknown parameter", capability);
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
}