From: Dmitry Shachnev Date: Sat, 22 Jul 2017 07:11:07 +0000 (+0300) Subject: Fixes for the OpenGL detection needed by changes in Qt v5.8.0 X-Git-Tag: archive/raspbian/5.9+dfsg-2+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9907c32d82b88d129ecd30f51177c830cdfa68a9;p=pyqt5.git Fixes for the OpenGL detection needed by changes in Qt v5.8.0 Origin: upstream, changeset bf6caed84fd3 (from 5.8.2 release) Patch-Name: opengl_detection.diff Gbp-Pq: Name opengl_detection.diff --- diff --git a/configure.py b/configure.py index 474aafc..c84c58a 100644 --- a/configure.py +++ b/configure.py @@ -618,7 +618,7 @@ class TargetConfiguration: out_file = 'qtdetail.out' - source = '''#include + source = '''#include #include #include #include @@ -676,7 +676,7 @@ int main(int argc, char **argv) #if defined(QT_NO_OPENGL) out << "PyQt_OpenGL\\n"; out << "PyQt_Desktop_OpenGL\\n"; -#elif defined(QT_OPENGL_ES_2) +#elif defined(QT_OPENGL_ES) || defined(QT_OPENGL_ES_2) || defined(QT_OPENGL_ES_3) out << "PyQt_Desktop_OpenGL\\n"; #endif @@ -696,7 +696,7 @@ int main(int argc, char **argv) } ''' % out_file - cmd = compile_qt_program(self, verbose, 'qtdetail', source, 'QtCore', + cmd = compile_qt_program(self, verbose, 'qtdetail', source, 'QtGui', debug=debug) if cmd is None: