diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-06-11 08:29:06 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-06-11 08:56:20 (GMT) |
commit | fbb3aca27682bfe81c17866f518eae23b3158aef (patch) | |
tree | 4eb98371381334e5bd4cdae2277e84af353b21b3 /src/opengl/qgl_x11.cpp | |
parent | b41ed8892c8afaff28c7d402ec9889aa848289d6 (diff) | |
download | Qt-fbb3aca27682bfe81c17866f518eae23b3158aef.zip Qt-fbb3aca27682bfe81c17866f518eae23b3158aef.tar.gz Qt-fbb3aca27682bfe81c17866f518eae23b3158aef.tar.bz2 |
Compile fix.
The PFNGLXCREATECONTEXTATTRIBSARBPROC typedef isn't defined on all
GLX 1.3 systems, so we use our own.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qgl_x11.cpp')
-rw-r--r-- | src/opengl/qgl_x11.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp index 3e71a48..da072c7 100644 --- a/src/opengl/qgl_x11.cpp +++ b/src/opengl/qgl_x11.cpp @@ -672,8 +672,12 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) GLX_CONTEXT_PROFILE_MASK_ARB, profile, 0 }; - PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribs = - (PFNGLXCREATECONTEXTATTRIBSARBPROC) qglx_getProcAddress("glXCreateContextAttribsARB"); + typedef GLXContext ( * Q_PFNGLXCREATECONTEXTATTRIBSARBPROC) + (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); + + + Q_PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribs = + (Q_PFNGLXCREATECONTEXTATTRIBSARBPROC) qglx_getProcAddress("glXCreateContextAttribsARB"); if (glXCreateContextAttribs) { int spec[45]; |