1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

LibGL: Fix a number of enum values in gl.h

Their values should match the enum values as defined by the Khronos
Group.
This commit is contained in:
Jelle Raaijmakers 2021-11-28 02:42:38 +01:00 committed by Andreas Kling
parent 5e370e6f96
commit d885cc102b

View file

@ -32,11 +32,11 @@ extern "C" {
#define GL_PROJECTION 0x1701 #define GL_PROJECTION 0x1701
// glBegin/glEnd primitive types // glBegin/glEnd primitive types
#define GL_TRIANGLES 0x0100 #define GL_TRIANGLES 0x0004
#define GL_QUADS 0x0101 #define GL_TRIANGLE_STRIP 0x0005
#define GL_TRIANGLE_FAN 0x0102 #define GL_TRIANGLE_FAN 0x0006
#define GL_TRIANGLE_STRIP 0x0103 #define GL_QUADS 0x0007
#define GL_POLYGON 0x0104 #define GL_POLYGON 0x0009
// Depth buffer and alpha test compare functions // Depth buffer and alpha test compare functions
#define GL_NEVER 0x0200 #define GL_NEVER 0x0200
@ -49,8 +49,8 @@ extern "C" {
#define GL_ALWAYS 0x0207 #define GL_ALWAYS 0x0207
// Buffer bits // Buffer bits
#define GL_COLOR_BUFFER_BIT 0x0200 #define GL_DEPTH_BUFFER_BIT 0x00100
#define GL_DEPTH_BUFFER_BIT 0x0400 #define GL_COLOR_BUFFER_BIT 0x04000
// Enable capabilities // Enable capabilities
#define GL_CULL_FACE 0x0B44 #define GL_CULL_FACE 0x0B44