[MPlayer-cvslog] r31284 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Sun May 30 15:51:25 CEST 2010


Author: reimar
Date: Sun May 30 15:51:24 2010
New Revision: 31284

Log:
Treat a NULL renderer string as indication for software renderer.
Usually it means OpenGL will not work at all.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Sun May 30 15:50:14 2010	(r31283)
+++ trunk/libvo/vo_gl.c	Sun May 30 15:51:24 2010	(r31284)
@@ -470,7 +470,7 @@ static void uninitGl(void) {
 static int isSoftwareGl(void)
 {
   const char *renderer = mpglGetString(GL_RENDERER);
-  return strcmp(renderer, "Software Rasterizer") == 0;
+  return !renderer || strcmp(renderer, "Software Rasterizer") == 0;
 }
 
 static void autodetectGlExtensions(void) {


More information about the MPlayer-cvslog mailing list