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.
This commit is contained in:
wm4 2012-04-24 01:12:57 +02:00
parent 025caa9fb5
commit 149d98d244
1 changed files with 3 additions and 1 deletions

View File

@ -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)