Fixed qglxconvenience.cpp compile for GLX 1.3.

These defines are new in GLX 1.4, earlier they were ARB extensions.

Task-number: QTBUG-27370
Change-Id: I83828067d106e93a3909de46a4051d492e277ba9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Samuel Rødal 2012-09-28 09:36:21 +02:00 committed by The Qt Project
parent 04d296d641
commit af83eecd76

View File

@ -48,6 +48,8 @@
#include <X11/extensions/Xrender.h>
#endif
#include <GL/glxext.h>
enum {
XFocusOut = FocusOut,
XFocusIn = FocusIn,
@ -240,7 +242,7 @@ QSurfaceFormat qglx_surfaceFormatFromGLXFBConfig(Display *display, GLXFBConfig c
glXGetFBConfigAttrib(display, config, GLX_ALPHA_SIZE, &alphaSize);
glXGetFBConfigAttrib(display, config, GLX_DEPTH_SIZE, &depthSize);
glXGetFBConfigAttrib(display, config, GLX_STENCIL_SIZE, &stencilSize);
glXGetFBConfigAttrib(display, config, GLX_SAMPLES, &sampleBuffers);
glXGetFBConfigAttrib(display, config, GLX_SAMPLES_ARB, &sampleBuffers);
glXGetFBConfigAttrib(display, config, GLX_STEREO, &stereo);
format.setRedBufferSize(redSize);