changeset 32632:d9764e977f12

llvmpipe, while only slow instead of insanely slow, is a software renderer. Recognize it as such and disable -vo gl_nosw on it.
author reimar
date Sat, 18 Dec 2010 20:56:37 +0000
parents 05e215862677
children 1fc26510b2cd
files libvo/vo_gl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Fri Dec 17 09:38:26 2010 +0000
+++ b/libvo/vo_gl.c	Sat Dec 18 20:56:37 2010 +0000
@@ -467,7 +467,8 @@
 static int isSoftwareGl(void)
 {
   const char *renderer = mpglGetString(GL_RENDERER);
-  return !renderer || strcmp(renderer, "Software Rasterizer") == 0;
+  return !renderer || strcmp(renderer, "Software Rasterizer") == 0 ||
+         strstr(renderer, "llvmpipe");
 }
 
 static void autodetectGlExtensions(void) {