summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2021-09-07 14:25:44 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-07 15:25:36 +0000
commit954972663881b9269948d3b07e19f3f4a88004cc (patch)
tree805d9943856c8d896a3fe8db282b466ee97217e0
parent8068b8565e2e519dd6692355195da2cf88f60dda (diff)
Fix build issue with conflicting declarations in GL headers
Some graphics stacks have old version of GL/GLES headers which have conflicting declaration and fail when GL and GLES headers are used at the same time. /usr/include/GL/glext.h:466:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr' | typedef ptrdiff_t GLsizeiptr; | ^~~~~~~~ /usr/include/GLES3/gl3.h:75:25: note: previous declaration as 'typedef khronos_ssize_t GLsizeiptr' | typedef khronos_ssize_t GLsizeiptr; | ^~~~~~~~~~ Change-Id: I98b96755ea1b27c942214adf3d76e65539302053 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 321d97b670e2b7a3b146d94dfcbbbb11c114ee76) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/multimedia/platform/gstreamer/common/qgstvideobuffer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/multimedia/platform/gstreamer/common/qgstvideobuffer.cpp b/src/multimedia/platform/gstreamer/common/qgstvideobuffer.cpp
index 6511855c1..7cd022a82 100644
--- a/src/multimedia/platform/gstreamer/common/qgstvideobuffer.cpp
+++ b/src/multimedia/platform/gstreamer/common/qgstvideobuffer.cpp
@@ -54,6 +54,7 @@
#include <QtGui/private/qrhigles2_p.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/qopenglfunctions.h>
+#include <QtGui/qopengl.h>
#include <gst/gl/gstglconfig.h>
#include <gst/gl/gstglmemory.h>
@@ -62,8 +63,6 @@
#include <EGL/egl.h>
#include <EGL/eglext.h>
-#define GL_GLEXT_PROTOTYPES
-#include <GL/gl.h>
#endif
QT_BEGIN_NAMESPACE