mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
Treat a NULL renderer string as indication for software renderer.
Usually it means OpenGL will not work at all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31284 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f316f63910
commit
49c904b517
@ -470,7 +470,7 @@ static void uninitGl(void) {
|
|||||||
static int isSoftwareGl(void)
|
static int isSoftwareGl(void)
|
||||||
{
|
{
|
||||||
const char *renderer = mpglGetString(GL_RENDERER);
|
const char *renderer = mpglGetString(GL_RENDERER);
|
||||||
return strcmp(renderer, "Software Rasterizer") == 0;
|
return !renderer || strcmp(renderer, "Software Rasterizer") == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void autodetectGlExtensions(void) {
|
static void autodetectGlExtensions(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user