diff options
author | Matthew Waters <matthew@centricular.com> | 2016-03-17 16:34:42 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-03-17 16:48:19 +1100 |
commit | df7016553ecdb5bb8fc69c2c5c5b087ea3d2f176 (patch) | |
tree | 7d9330c16795a3361e5c7f6f0ccd8219d5e00b6d | |
parent | 0703c044149cc259ae6fcd910e77dcf456182129 (diff) | |
download | gstreamer-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.cpp | 3 | ||||
-rw-r--r-- | tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp | 3 | ||||
-rw-r--r-- | tests/examples/gl/qt/qglwtextureshare/main.cpp | 3 |
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())); |