examples/gl/qt: Don't include GL/glx.h unconditionally
authorSeungha Yang <seungha@centricular.com>
Tue, 7 Jul 2020 19:08:33 +0000 (04:08 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 7 Jul 2020 23:12:47 +0000 (23:12 +0000)
The header file might not be available on non-*nix platform.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/740>

tests/examples/gl/qt/qglwtextureshare/qglrenderer.cpp

index aaf1624..814fcbd 100644 (file)
 #include <QDebug>
 #include <QCloseEvent>
 
-#include <GL/glx.h>
-
 #include <gst/video/video.h>
 #include <gst/gl/gl.h>
 #include <gst/gl/gstglfuncs.h>
 
 #if GST_GL_HAVE_PLATFORM_GLX
+#include <GL/glx.h>
 #include <QX11Info>
 #include <gst/gl/x11/gstgldisplay_x11.h>
 #endif