From eea62e90677fb7f7bee25228374d208877766739 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Wed, 29 Jan 2014 19:07:17 +0100 Subject: [PATCH] Move #include up We have to include it before the X11 headers dragged in by qglxconvenience_p.h. --- ...rce-src-5.2.0-allow-forcing-llvmpipe.patch | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe.patch b/qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe.patch index 279dc52..1869f54 100644 --- a/qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe.patch +++ b/qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe.patch @@ -1,15 +1,18 @@ diff -ur qtbase-opensource-src-5.2.0/src/platformsupport/glxconvenience/qglxconvenience.cpp qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe/src/platformsupport/glxconvenience/qglxconvenience.cpp --- qtbase-opensource-src-5.2.0/src/platformsupport/glxconvenience/qglxconvenience.cpp 2013-12-08 18:09:47.000000000 +0100 -+++ qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe/src/platformsupport/glxconvenience/qglxconvenience.cpp 2014-01-29 18:18:47.000000000 +0100 -@@ -43,6 +43,7 @@ ++++ qtbase-opensource-src-5.2.0-allow-forcing-llvmpipe/src/platformsupport/glxconvenience/qglxconvenience.cpp 2014-01-29 19:03:23.000000000 +0100 +@@ -39,6 +39,10 @@ + ** + ****************************************************************************/ + ++// We have to include this before the X11 headers dragged in by ++// qglxconvenience_p.h. ++#include ++ + #include "qglxconvenience_p.h" #include - #include -+#include - - #ifndef QT_NO_XRENDER - #include -@@ -116,6 +117,27 @@ +@@ -116,6 +120,27 @@ GLXFBConfig qglx_findConfig(Display *display, int screen , const QSurfaceFormat &format, int drawableBit) { @@ -37,7 +40,7 @@ diff -ur qtbase-opensource-src-5.2.0/src/platformsupport/glxconvenience/qglxconv bool reduced = true; GLXFBConfig chosenConfig = 0; QSurfaceFormat reducedFormat = format; -@@ -159,6 +181,10 @@ +@@ -159,6 +184,10 @@ reducedFormat = qglx_reduceSurfaceFormat(reducedFormat,&reduced); }