summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-12-18 20:56:37 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-29 02:48:58 +0200
commit7c8cb100afd0186766f8c7f0f4ce069845ba845a (patch)
tree3bdd8b389886b8ffb37e7c93ed555da4d24ef087
parent6ccf28b238626abccba3844b5b835b9f9de2d33f (diff)
downloadmpv-7c8cb100afd0186766f8c7f0f4ce069845ba845a.tar.bz2
mpv-7c8cb100afd0186766f8c7f0f4ce069845ba845a.tar.xz
vo_gl: mark llvmpipe as a software renderer
llvmpipe, while only slow instead of insanely slow, is a software renderer. Recognize it as such and disable -vo gl_nosw on it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32719 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_gl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index c062614d3a..d2f98a26fe 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -485,7 +485,8 @@ static void uninitGl(void) {
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) {