mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +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:
parent
1959efe063
commit
55b3ecfbd3
2 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue