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.
This commit is contained in:
Jelle Raaijmakers 2022-09-04 16:47:59 +02:00 committed by Linus Groh
parent 6d8dd0ee61
commit 789d871892
Notes: sideshowbarker 2024-07-17 07:16:04 +09:00

View File

@ -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