From 015ec7587f9d6da6783fbf88f98d966a0496427c Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 17 Mar 2016 16:34:42 +1100 Subject: [PATCH] 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. --- tests/examples/gl/qt/mousevideooverlay/main.cpp | 3 +++ tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp | 3 +++ tests/examples/gl/qt/qglwtextureshare/main.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/examples/gl/qt/mousevideooverlay/main.cpp b/tests/examples/gl/qt/mousevideooverlay/main.cpp index de5dfa5..52c539d 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 1265ae4..f782baa 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 9ff8dba..ebe81cf 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())); -- 2.7.4