summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-03-17 16:34:42 +1100
committerMatthew Waters <matthew@centricular.com>2016-03-17 16:48:19 +1100
commitdf7016553ecdb5bb8fc69c2c5c5b087ea3d2f176 (patch)
tree7d9330c16795a3361e5c7f6f0ccd8219d5e00b6d
parent0703c044149cc259ae6fcd910e77dcf456182129 (diff)
downloadgstreamer-plugins-bad-df7016553ecdb5bb8fc69c2c5c5b087ea3d2f176.tar.gz
gl/examples/qt: restrict the GL API to opengl where needed
Until the examples are ported to opengl3/gles2, they will not work with any other GL api.
-rw-r--r--tests/examples/gl/qt/mousevideooverlay/main.cpp3
-rw-r--r--tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp3
-rw-r--r--tests/examples/gl/qt/qglwtextureshare/main.cpp3
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/examples/gl/qt/mousevideooverlay/main.cpp b/tests/examples/gl/qt/mousevideooverlay/main.cpp
index de5dfa505..52c539d00 100644
--- a/tests/examples/gl/qt/mousevideooverlay/main.cpp
+++ b/tests/examples/gl/qt/mousevideooverlay/main.cpp
@@ -24,6 +24,9 @@
int main(int argc, char *argv[])
{
+ /* FIXME: port the example to shaders and remove this */
+ g_setenv ("GST_GL_API", "opengl", FALSE);
+
QApplication a(argc, argv);
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
diff --git a/tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp b/tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp
index 1265ae405..f782baa8b 100644
--- a/tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp
+++ b/tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp
@@ -24,6 +24,9 @@
int main(int argc, char *argv[])
{
+ /* FIXME: port the example to shaders and remove this */
+ g_setenv ("GST_GL_API", "opengl", FALSE);
+
QApplication a(argc, argv);
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
diff --git a/tests/examples/gl/qt/qglwtextureshare/main.cpp b/tests/examples/gl/qt/qglwtextureshare/main.cpp
index 9ff8dbaa3..ebe81cf86 100644
--- a/tests/examples/gl/qt/qglwtextureshare/main.cpp
+++ b/tests/examples/gl/qt/qglwtextureshare/main.cpp
@@ -27,6 +27,9 @@
int
main(int argc, char *argv[])
{
+ /* FIXME: port the example to shaders and remove this */
+ g_setenv ("GST_GL_API", "opengl", FALSE);
+
gst_init (NULL, NULL);
QApplication a(argc, argv);
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));