diff options
author | Frank Richter <frank.richter@gmail.com> | 2017-06-12 15:21:34 +0200 |
---|---|---|
committer | Frank Richter <frank.richter@gmail.com> | 2018-01-18 12:59:39 +0000 |
commit | 04337275e4b66ba5853c24a79d7f61ebb2e7a247 (patch) | |
tree | 0c83e2dcba2883c23fd0a6c75e822f8869effa33 /src | |
parent | 685ce77cb6c696fb062ff4ab967b6ae553821a2d (diff) |
Fix incorrect GLX pbuffer attributes terminator
The glXCreatePbuffer() documentation states that the attributes list
must be terminated with "None or NULL". However, GLX_NONE does not
have a null value. Mesa is sensitive to this.
Change-Id: I9606d95a6a0dadec446496abb8e0213950e3d700
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/gl_surface_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp index a18e22b58..81d1b1cd5 100644 --- a/src/core/gl_surface_qt.cpp +++ b/src/core/gl_surface_qt.cpp @@ -257,7 +257,7 @@ bool GLSurfaceQtGLX::Initialize() GLX_PBUFFER_HEIGHT, m_size.height(), GLX_LARGEST_PBUFFER, False, GLX_PRESERVED_CONTENTS, False, - GLX_NONE + 0 }; m_surfaceBuffer = glXCreatePbuffer(display, static_cast<GLXFBConfig>(g_config), pbuffer_attributes); |