1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:47:46 +00:00

LibGL: Fix incorrect GL_DECAL constant value

The constant value for GL_DECAL is 0x2101 instead of 0x2102.
This was tripping up Half-Life when making the water texture
transparent when under water. The Half-Life port uses its own OpenGL
header, meaning this error wasn't hidden by us.
This commit is contained in:
Luke Wilde 2022-01-21 13:52:09 +00:00 committed by Andreas Kling
parent 5b2c973cc3
commit 483ab7fe26

View file

@ -420,7 +420,7 @@ extern "C" {
// Texture Environment and Parameters
#define GL_MODULATE 0x2100
#define GL_TEXTURE_ENV_MODE 0x2200
#define GL_DECAL 0x2102
#define GL_DECAL 0x2101
#define GL_TEXTURE_ENV 0x2300
#define GL_NEAREST 0x2600
#define GL_LINEAR 0x2601