summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-11-28 02:42:38 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-11 23:15:24 +0100
commitd885cc102b5c2e0f9f723b214778be0fdf6a996d (patch)
tree91a9fbcde7731c55032df190849c8d8b02df6ccc /Userland
parent5e370e6f96864325d75286dcafaf85f893f7b3d4 (diff)
downloadserenity-d885cc102b5c2e0f9f723b214778be0fdf6a996d.zip
LibGL: Fix a number of enum values in `gl.h`
Their values should match the enum values as defined by the Khronos Group.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index 61aed59565..3d26fa7180 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -32,11 +32,11 @@ extern "C" {
#define GL_PROJECTION 0x1701
// glBegin/glEnd primitive types
-#define GL_TRIANGLES 0x0100
-#define GL_QUADS 0x0101
-#define GL_TRIANGLE_FAN 0x0102
-#define GL_TRIANGLE_STRIP 0x0103
-#define GL_POLYGON 0x0104
+#define GL_TRIANGLES 0x0004
+#define GL_TRIANGLE_STRIP 0x0005
+#define GL_TRIANGLE_FAN 0x0006
+#define GL_QUADS 0x0007
+#define GL_POLYGON 0x0009
// Depth buffer and alpha test compare functions
#define GL_NEVER 0x0200
@@ -49,8 +49,8 @@ extern "C" {
#define GL_ALWAYS 0x0207
// Buffer bits
-#define GL_COLOR_BUFFER_BIT 0x0200
-#define GL_DEPTH_BUFFER_BIT 0x0400
+#define GL_DEPTH_BUFFER_BIT 0x00100
+#define GL_COLOR_BUFFER_BIT 0x04000
// Enable capabilities
#define GL_CULL_FACE 0x0B44