examples/gl/qt: Don't include GL/glx.h unconditionally

The header file might not be available on non-*nix platform.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/740>
This commit is contained in:
Seungha Yang 2020-07-08 04:08:33 +09:00 committed by GStreamer Merge Bot
parent c38b6cc305
commit ed573ff1f9

View File

@ -25,13 +25,12 @@
#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