summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_x11.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-06-11 08:29:06 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-06-11 08:56:20 (GMT)
commitfbb3aca27682bfe81c17866f518eae23b3158aef (patch)
tree4eb98371381334e5bd4cdae2277e84af353b21b3 /src/opengl/qgl_x11.cpp
parentb41ed8892c8afaff28c7d402ec9889aa848289d6 (diff)
downloadQt-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.cpp8
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];