Browse files

Fixed compile error with Clang/C++11

  • Loading branch information...
1 parent 6e81dab commit 226be57589053223789f9a3d25a83e576da0129c @LaurentGomila LaurentGomila committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/SFML/Window/Linux/GlxContext.cpp
View
4 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<int>(m_settings.majorVersion),
+ GLX_CONTEXT_MINOR_VERSION_ARB, static_cast<int>(m_settings.minorVersion),
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
0, 0
};

0 comments on commit 226be57

Please sign in to comment.