Browse Source

Verify that GL boolean values have expected value.

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
4176047112
  1. 5
      src/OpenGL.cpp

5
src/OpenGL.cpp

@ -29,6 +29,7 @@
namespace Magnum {
/* Verify types */
static_assert(std::is_same<GLubyte, UnsignedByte>::value, "GLubyte is not the same as UnsignedByte");
static_assert(std::is_same<GLbyte, Byte>::value, "GLbyte is not the same as Byte");
static_assert(std::is_same<GLushort, UnsignedShort>::value, "GLushort is not the same as UnsignedShort");
@ -41,4 +42,8 @@ static_assert(std::is_same<GLfloat, Float>::value, "GLfloat is not the same as F
static_assert(std::is_same<GLdouble, Double>::value, "GLdouble is not the same as Double");
#endif
/* Verify boolean values */
static_assert(GL_FALSE == false, "GL_FALSE is not the same as false");
static_assert(GL_TRUE == true, "GL_TRUE is not the same as true");
}

Loading…
Cancel
Save