gl/examples/qt: restrict the GL API to opengl where needed
authorMatthew Waters <matthew@centricular.com>
Thu, 17 Mar 2016 05:34:42 +0000 (16:34 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:18 +0000 (19:32 +0000)
Until the examples are ported to opengl3/gles2, they will not work with any
other GL api.

tests/examples/gl/qt/mousevideooverlay/main.cpp
tests/examples/gl/qt/qglwidgetvideooverlay/main.cpp
tests/examples/gl/qt/qglwtextureshare/main.cpp

index de5dfa5..52c539d 100644 (file)
@@ -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()));
 
index 1265ae4..f782baa 100644 (file)
@@ -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()));
 
index 9ff8dba..ebe81cf 100644 (file)
@@ -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()));