Commit ac5631c7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

opengl vout: fixed chroma issue with dated PowerPC-based Macs, which run...

opengl vout: fixed chroma issue with dated PowerPC-based Macs, which run OpenGL 1.3 only and don't support the GL_ARB_fragment_program extension
parent 3e7cc6f5
...@@ -263,6 +263,18 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt, ...@@ -263,6 +263,18 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
list++; list++;
} }
} }
#if (defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)) && defined (__APPLE__)
/* This is a work-around for dated PowerPC-based Macs, which run OpenGL 1.3 only and don't
* support the GL_ARB_fragment_program extension.
* Affected devices are all Macs built between 2002 and 2005 with an ATI Radeon 7500,
* an ATI Radeon 9200 or a NVIDIA GeForceFX 5200 Ultra. */
else
{
vgl->tex_format = GL_YCBCR_422_APPLE;
vgl->tex_type = GL_UNSIGNED_SHORT_8_8_APPLE;
vgl->fmt.i_chroma = VLC_CODEC_YUYV;
}
#endif
vgl->chroma = vlc_fourcc_GetChromaDescription(vgl->fmt.i_chroma); vgl->chroma = vlc_fourcc_GetChromaDescription(vgl->fmt.i_chroma);
vgl->use_multitexture = vgl->chroma->plane_count > 1; vgl->use_multitexture = vgl->chroma->plane_count > 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment