1 From 9bbf9f0d862b8d458e59690d36641618fb101b4e Mon Sep 17 00:00:00 2001
2 From: Val Doroshchuk <valentyn.doroshchuk@qt.io>
3 Date: Mon, 17 Jun 2019 15:20:22 +0200
4 Subject: Fix compile issue when no opengl in QVideoSurfacePainter
6 error: invalid use of incomplete type 'class QGLContext'
8 Change-Id: I4bc9bd4231e663b187d3cef917b7a551ba614ba9
10 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
13 https://code.qt.io/cgit/qt/qtmultimedia.git/commit/?id=9bbf9f0d862b8d458e59690d36641618fb101b4e]
14 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
16 src/multimediawidgets/qpaintervideosurface.cpp | 8 ++++----
17 1 file changed, 4 insertions(+), 4 deletions(-)
19 diff --git a/src/multimediawidgets/qpaintervideosurface.cpp b/src/multimediawidgets/qpaintervideosurface.cpp
20 index 440d5c858..6af0c7588 100644
21 --- a/src/multimediawidgets/qpaintervideosurface.cpp
22 +++ b/src/multimediawidgets/qpaintervideosurface.cpp
25 #define GL_RGB8 0x8051
32 static void makeCurrent(QGLContext *context)
34 @@ -70,6 +66,10 @@ static void makeCurrent(QGLContext *context)
35 if (handle && QOpenGLContext::currentContext() != handle)
36 handle->makeCurrent(handle->surface());
43 QVideoSurfacePainter::~QVideoSurfacePainter()