summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GL
diff options
context:
space:
mode:
authorJesse Buhagiar <jooster669@gmail.com>2021-04-24 02:21:13 +1000
committerAndreas Kling <kling@serenityos.org>2021-05-08 10:13:22 +0200
commit55b3ecfbd3b5d3dc363c3e72aeb3d9183b575b22 (patch)
treea25c4a8046975af7594b3dabd3b1505212ff4824 /Userland/Libraries/LibGL/GL
parent1959efe063b4d29300e88d411e46bef02afdca43 (diff)
downloadserenity-55b3ecfbd3b5d3dc363c3e72aeb3d9183b575b22.zip
LibGL: Check for matrix stack over/underflow
We now correctly set the gloabl error if we detect that a matrix stack overflow will occur in `glPushMatrix` or `glPopMatrix`
Diffstat (limited to 'Userland/Libraries/LibGL/GL')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index 132a103265..9dfaefec82 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -42,8 +42,10 @@ extern "C" {
#define GL_INVALID_ENUM 0x500
#define GL_INVALID_VALUE 0x501
#define GL_INVALID_OPERATION 0x502
-#define GL_INVALID_FRAMEBUFFER_OPERATION 0x503
-#define GL_OUT_OF_MEMORY 0x504
+#define GL_STACK_OVERFLOW 0x0503
+#define GL_STACK_UNDERFLOW 0x0504
+#define GL_OUT_OF_MEMORY 0x505
+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x506
//
// OpenGL typedefs