summaryrefslogtreecommitdiff
path: root/media-libs/mlt/files/mlt-6.4.1-qtopengl-1.patch
blob: c00e8d05615b5c97e82a101d74b963faf5b0a1c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From d2a04ae77a6b2c82a2e12b9fb631beb8f825946d Mon Sep 17 00:00:00 2001
From: Alberto Villa <avilla@FreeBSD.org>
Date: Sat, 24 Dec 2016 05:07:54 +0100
Subject: [PATCH] Move Qt OpenGL include(s) to Qt 4 specific code

Only Qt 4 code references those files (QMutex and QWaitCondition are
not OpenGL files, but still they're only useful in Qt 4 code).
---
 src/modules/qt/consumer_qglsl.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/modules/qt/consumer_qglsl.cpp b/src/modules/qt/consumer_qglsl.cpp
index 74840602..ca0cf383 100644
--- a/src/modules/qt/consumer_qglsl.cpp
+++ b/src/modules/qt/consumer_qglsl.cpp
@@ -20,13 +20,14 @@
 #include "common.h"
 #include <framework/mlt.h>
 #include <QApplication>
-#include <QGLWidget>
-#include <QMutex>
-#include <QWaitCondition>
 #include <QtGlobal>
 
 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
 
+#include <QGLWidget>
+#include <QMutex>
+#include <QWaitCondition>
+
 class GLWidget : public QGLWidget
 {
 private: