changeset 31218:635fc9c0ba3b

Treat a NULL renderer string as indication for software renderer. Usually it means OpenGL will not work at all.
author reimar
date Sun, 30 May 2010 13:51:24 +0000
parents c9a36e78e221
children e02877d8647e
files libvo/vo_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sun May 30 13:50:14 2010 +0000
+++ b/libvo/vo_gl.c	Sun May 30 13:51:24 2010 +0000
@@ -470,7 +470,7 @@
 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) {