summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-09-04 16:47:59 +0200
committerLinus Groh <mail@linusgroh.de>2022-09-11 22:37:07 +0100
commit789d8718929db1d51db6cbb98340452dccc5a992 (patch)
tree6e5bb5885204183a98dc5903c3935899bed27689 /Userland/Libraries/LibGL
parent6d8dd0ee615c7c9637de373954772ee60b1da9b7 (diff)
downloadserenity-789d8718929db1d51db6cbb98340452dccc5a992.zip
LibGL: Define `GL_NO_ERROR` as `0`
This conforms to the Khronos enum value listing and prevents a redefinition warning when compiling with SDL_opengl.
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index db137c8a4b..aafe0c4058 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -170,7 +170,7 @@ extern "C" {
#define GL_FRONT_AND_BACK 0x0408
// Error codes
-#define GL_NO_ERROR 0x0000
+#define GL_NO_ERROR 0
#define GL_INVALID_ENUM 0x0500
#define GL_INVALID_VALUE 0x0501
#define GL_INVALID_OPERATION 0x0502