Mercurial > mplayer.hg
changeset 31021:b25ae678c778
Some crash-resilience fixes.
author | reimar |
---|---|
date | Sat, 24 Apr 2010 16:49:46 +0000 |
parents | 529614f44431 |
children | d31b184c7c3a |
files | libvo/gl_common.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Sat Apr 24 16:46:47 2010 +0000 +++ b/libvo/gl_common.c Sat Apr 24 16:49:46 2010 +0000 @@ -1384,6 +1384,8 @@ */ int glAutodetectYUVConversion(void) { const char *extensions = mpglGetString(GL_EXTENSIONS); + if (!extensions || !mpglMultiTexCoord2f) + return YUV_CONVERSION_NONE; if (strstr(extensions, "GL_ARB_fragment_program")) return YUV_CONVERSION_FRAGMENT; if (strstr(extensions, "GL_ATI_text_fragment_shader"))