Browse Source

Platform: avoid using C-style casts.

pull/132/head
Vladimír Vondruš 11 years ago
parent
commit
cf89f5306d
  1. 2
      src/Magnum/Platform/WindowlessGlxApplication.cpp

2
src/Magnum/Platform/WindowlessGlxApplication.cpp

@ -104,7 +104,7 @@ bool WindowlessGlxApplication::tryCreateContext(const Configuration& configurati
0
};
const PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC) glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
const PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribsARB = reinterpret_cast<PFNGLXCREATECONTEXTATTRIBSARBPROC>(glXGetProcAddress(reinterpret_cast<const GLubyte*>("glXCreateContextAttribsARB")));
_glContext = glXCreateContextAttribsARB(_display, configs[0], nullptr, True, contextAttributes);
#ifndef MAGNUM_TARGET_GLES

Loading…
Cancel
Save