1. Jason McKesson
  2. Unofficial OpenGL SDK
  3. Issues
Issue #56 new

problems caused by windows.h included in glload

Anonymous created an issue

Some macros defined by GL also defined in windows.h, and this breaks the code when writing as: gl::GetError() == gl::NO_ERROR; // can not compile

in glload 4.x this is a enum item called GL_NO_ERROR, so this is ok. But the new glload 5.x removed all the prefix GL_ for gl enum items, and some macros defined in windows.h conflict with these gl enum items.

Also these two: GL_TRUE/GL_FALSE, as far as I know.

Actually, windows.h included in one of the glload header file is really annoying as it defined lots of macros and often conflict with function name of mine.

Wish this can be solved~

Comments (0)

  1. Log in to comment