diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-10-18 01:28:56 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-17 21:01:52 -0700 |
commit | abaac02c885bf43b96af4a387c60cce69916df00 (patch) | |
tree | 89da190fa66c31ba0d81335c17d8f92169435fa5 | |
parent | ca4276db77bc91ec047f83c83b13c9e98ae03d6d (diff) | |
download | serenity-abaac02c885bf43b96af4a387c60cce69916df00.zip |
LibGL: Correct GL_MODELVIEW and GL_PROJECTION values
According to the Khronos group, GL enum values are in the spec:
https://www.khronos.org/registry/OpenGL/docs/enums.html
Not adhering to their values will cause issues with projects that ship
their own copy of `gl.h`, such as ScummVM.
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index de4ad90561..9bf5609b52 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -28,8 +28,8 @@ extern "C" { #define GL_NONE 0 // Matrix Modes -#define GL_MODELVIEW 0x0050 -#define GL_PROJECTION 0x0051 +#define GL_MODELVIEW 0x1700 +#define GL_PROJECTION 0x1701 // glBegin/glEnd primitive types #define GL_TRIANGLES 0x0100 |