mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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:
parent
025caa9fb5
commit
149d98d244
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user