From e7ca427ddbe4e89dbfc1f0279798891d75af39df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 10 Jun 2015 11:42:06 +0200 Subject: [PATCH] gl: OES_vertex_array_object is improperly implemented on PowerVR SGX 544MP https://bugzilla.gnome.org/show_bug.cgi?id=750185 --- gst-libs/gst/gl/gstglcontext.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index eb3b7e6260..5e6bc22453 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -1485,6 +1485,18 @@ gst_gl_context_fill_info (GstGLContext * context, GError ** error) goto failure; } + /* Does not implement OES_vertex_array_object properly, see + * https://bugzilla.gnome.org/show_bug.cgi?id=750185 */ + if (g_strcmp0 ((const gchar *) gl->GetString (GL_VENDOR), + "Imagination Technologies") == 0 + && g_strcmp0 ((const gchar *) gl->GetString (GL_RENDERER), + "PowerVR SGX 544MP") == 0) { + gl->GenVertexArrays = NULL; + gl->DeleteVertexArrays = NULL; + gl->BindVertexArray = NULL; + gl->IsVertexArray = NULL; + } + return TRUE; failure: