Glad: GL_STACK_OVERFLOW and GL_STACK_UNDERFLOW seem to be undefined

Created on 1 Aug 2016  ·  3Comments  ·  Source: Dav1dde/glad

I've just generated an OpenGL 2.1 glad zip from the web service (I'm trying to switch a quite large project away from GLEW) and it appears GL_STACK_OVERFLOW and GL_STACK_UNDERFLOW are undefined. In fact, this is the section in glad.h where they should be...

#define GL_NO_ERROR 0
#define GL_INVALID_ENUM 0x0500
#define GL_INVALID_VALUE 0x0501
#define GL_INVALID_OPERATION 0x0502
#define GL_OUT_OF_MEMORY 0x0505

Notice that it jumps from 0x0502 to 0x0505 :)

glad2 question

Most helpful comment

It should not and does not in the glad2 branch where the profile behaviour is properly implemented. Unfortunately that's how it is, not going to fix it in this branch (too much work), soon there will be glad 2.0 ;)

All 3 comments

I cannot reproduce the issue, I generated C/C++, 2.1 OpenGL on http://glad.dav1d.de - Can you paste how you generated the loader (should be in the comment at the beginning of the file) e.g. --profile="compatibility" --api="gl=2.1" --generator="c" --spec="gl" --extensions=""

-->

#define GL_FLOAT 0x1406
#define GL_DOUBLE 0x140A
#define GL_STACK_OVERFLOW 0x0503
#define GL_STACK_UNDERFLOW 0x0504
#define GL_CLEAR 0x1500
#define GL_AND 0x1501

Ah! Select "core" profile (I guess this shouldn't make a difference on 2.1)

It should not and does not in the glad2 branch where the profile behaviour is properly implemented. Unfortunately that's how it is, not going to fix it in this branch (too much work), soon there will be glad 2.0 ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lethal-guitar picture lethal-guitar  ·  6Comments

sasmaster picture sasmaster  ·  9Comments

computersarecool picture computersarecool  ·  6Comments

MinusGix picture MinusGix  ·  6Comments

ButchDean picture ButchDean  ·  4Comments