Fixed compile error with Clang/C++11

This commit is contained in:
Laurent Gomila 2012-10-01 21:05:37 +02:00
parent 6e81dabeda
commit 226be57589

View File

@ -246,8 +246,8 @@ void GlxContext::createContext(GlxContext* shared, unsigned int bitsPerPixel, co
// Create the context // Create the context
int attributes[] = int attributes[] =
{ {
GLX_CONTEXT_MAJOR_VERSION_ARB, m_settings.majorVersion, GLX_CONTEXT_MAJOR_VERSION_ARB, static_cast<int>(m_settings.majorVersion),
GLX_CONTEXT_MINOR_VERSION_ARB, m_settings.minorVersion, GLX_CONTEXT_MINOR_VERSION_ARB, static_cast<int>(m_settings.minorVersion),
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
0, 0 0, 0
}; };