mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
[400/906] gstgldisplay: no need the I420 work around if ATI Mobility
fix #588653
This commit is contained in:
parent
f23b6144d5
commit
e70ed87aa8
1 changed files with 6 additions and 2 deletions
|
@ -936,8 +936,12 @@ gst_gl_display_thread_init_upload (GstGLDisplay * display)
|
||||||
{
|
{
|
||||||
#ifndef OPENGL_ES2
|
#ifndef OPENGL_ES2
|
||||||
gchar text_shader_upload_I420_YV12[2048];
|
gchar text_shader_upload_I420_YV12[2048];
|
||||||
if (g_ascii_strncasecmp ("ATI", (gchar *) glGetString (GL_VENDOR),
|
if ((g_ascii_strncasecmp ("ATI", (gchar *) glGetString (GL_VENDOR),
|
||||||
3) == 0)
|
3) == 0)
|
||||||
|
&& (g_ascii_strncasecmp ("ATI Mobility Radeon HD",
|
||||||
|
(gchar *) glGetString (GL_RENDERER), 22) != 0)
|
||||||
|
&& (g_ascii_strncasecmp ("ATI Radeon HD",
|
||||||
|
(gchar *) glGetString (GL_RENDERER), 13) != 0))
|
||||||
sprintf (text_shader_upload_I420_YV12,
|
sprintf (text_shader_upload_I420_YV12,
|
||||||
display->text_shader_upload_I420_YV12, "*0.5", "");
|
display->text_shader_upload_I420_YV12, "*0.5", "");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue