You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue where GLAD included windows.h. I've read #42, and I understand why you thought it was a good idea to keep it, but one thing that would help a whole bunch is defining NOMINMAX before including windows.h. This specifically is a major pain-point when including windows.h, as the min and max macros conflict with std::min and std::max, which seems like behavior you would want to avoid in most cases. Those who needed Microsoft's min/max could simply include windows.h before GLAD.
For what it's worth, SDL_opengl.h appears to do exactly what I describe.
The text was updated successfully, but these errors were encountered:
I ran into an issue where GLAD included
windows.h
. I've read #42, and I understand why you thought it was a good idea to keep it, but one thing that would help a whole bunch is definingNOMINMAX
before includingwindows.h
. This specifically is a major pain-point when includingwindows.h
, as the min and max macros conflict withstd::min
andstd::max
, which seems like behavior you would want to avoid in most cases. Those who needed Microsoft's min/max could simply includewindows.h
before GLAD.For what it's worth,
SDL_opengl.h
appears to do exactly what I describe.The text was updated successfully, but these errors were encountered: