From 41760471129bc7c70f42037818c72a16b6c7028b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 22 May 2013 00:16:01 +0200 Subject: [PATCH] Verify that GL boolean values have expected value. --- src/OpenGL.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenGL.cpp b/src/OpenGL.cpp index 7a0dbeee2..91c48b7a9 100644 --- a/src/OpenGL.cpp +++ b/src/OpenGL.cpp @@ -29,6 +29,7 @@ namespace Magnum { +/* Verify types */ static_assert(std::is_same::value, "GLubyte is not the same as UnsignedByte"); static_assert(std::is_same::value, "GLbyte is not the same as Byte"); static_assert(std::is_same::value, "GLushort is not the same as UnsignedShort"); @@ -41,4 +42,8 @@ static_assert(std::is_same::value, "GLfloat is not the same as F static_assert(std::is_same::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"); + }