From 226be57589053223789f9a3d25a83e576da0129c Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 1 Oct 2012 21:05:37 +0200 Subject: [PATCH] Fixed compile error with Clang/C++11 --- src/SFML/Window/Linux/GlxContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/Linux/GlxContext.cpp b/src/SFML/Window/Linux/GlxContext.cpp index bdc7be6c..a6e1fd14 100644 --- a/src/SFML/Window/Linux/GlxContext.cpp +++ b/src/SFML/Window/Linux/GlxContext.cpp @@ -246,8 +246,8 @@ void GlxContext::createContext(GlxContext* shared, unsigned int bitsPerPixel, co // Create the context int attributes[] = { - GLX_CONTEXT_MAJOR_VERSION_ARB, m_settings.majorVersion, - GLX_CONTEXT_MINOR_VERSION_ARB, m_settings.minorVersion, + GLX_CONTEXT_MAJOR_VERSION_ARB, static_cast(m_settings.majorVersion), + GLX_CONTEXT_MINOR_VERSION_ARB, static_cast(m_settings.minorVersion), GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, 0, 0 };