From 27f73aecdf3a7d137e9448aa6b6e6bbf35603b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Oct 2018 14:36:45 +0200 Subject: [PATCH] Platform: what the hell, these are not bitflags! It's pure luck that this ever worked. --- src/Magnum/Platform/GlfwApplication.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index c9c7adf56..38c687475 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -586,7 +586,7 @@ class GlfwApplication::GLConfiguration { * * @see @ref Flags, @ref setFlags(), @ref Context::Flag */ - enum class Flag: Int { + enum class Flag: UnsignedByte { #if defined(DOXYGEN_GENERATING_OUTPUT) || defined(GLFW_CONTEXT_NO_ERROR) /** * Specifies whether errors should be generated by the context. @@ -595,11 +595,11 @@ class GlfwApplication::GLConfiguration { * * @note Supported since GLFW 3.2. */ - NoError = GLFW_CONTEXT_NO_ERROR, + NoError = 1 << 1, #endif - Debug = GLFW_OPENGL_DEBUG_CONTEXT, /**< Debug context */ - Stereo = GLFW_STEREO, /**< Stereo rendering */ + Debug = 1 << 2, /**< Debug context */ + Stereo = 1 << 3 /**< Stereo rendering */ }; /**