From 149d98d24495550f7ee1e187225e2924b1b90024 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Apr 2012 01:12:57 +0200 Subject: vo_gl: reject MS Windows native OpenGL as software rasterizer If the graphics driver doesn't provide its own OpenGL implementation, applications get Microsoft's OpenGL emulation. Even if it should be the case that it's not strictly a software renderer, it provides OpenGL 1.1 only, no shaders in any form, and has other limitations that make it almost completely useless for mplayer. --- libvo/vo_gl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 1d8a22f77b..f72f1ae70c 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -432,8 +432,10 @@ static int isSoftwareGl(struct vo *vo) { struct gl_priv *p = vo->priv; const char *renderer = p->gl->GetString(GL_RENDERER); + const char *vendor = p->gl->GetString(GL_VENDOR); return !renderer || strcmp(renderer, "Software Rasterizer") == 0 || - strstr(renderer, "llvmpipe"); + strstr(renderer, "llvmpipe") || + strcmp(vendor, "Microsoft Corporation") == 0; } static void autodetectGlExtensions(struct vo *vo) -- cgit v1.2.3