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.
This commit is contained in:
Matthew Waters 2016-03-17 16:34:42 +11:00 committed by Tim-Philipp Müller
parent d2542993dd
commit 015ec7587f
3 changed files with 9 additions and 0 deletions

View 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()));

View 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()));

View 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()));