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

LibGL: Check for matrix stack over/underflow

We now correctly set the gloabl error if we detect that
a matrix stack overflow will occur in `glPushMatrix` or
`glPopMatrix`
This commit is contained in:
Jesse Buhagiar 2021-04-24 02:21:13 +10:00 committed by Andreas Kling
parent 1959efe063
commit 55b3ecfbd3
2 changed files with 23 additions and 2 deletions

View file

@ -42,8 +42,10 @@ extern "C" {
#define GL_INVALID_ENUM 0x500
#define GL_INVALID_VALUE 0x501
#define GL_INVALID_OPERATION 0x502
#define GL_INVALID_FRAMEBUFFER_OPERATION 0x503
#define GL_OUT_OF_MEMORY 0x504
#define GL_STACK_OVERFLOW 0x0503
#define GL_STACK_UNDERFLOW 0x0504
#define GL_OUT_OF_MEMORY 0x505
#define GL_INVALID_FRAMEBUFFER_OPERATION 0x506
//
// OpenGL typedefs