1
0
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:
reimar 2010-05-30 13:51:24 +00:00
parent f316f63910
commit 49c904b517

View File

@ -470,7 +470,7 @@ static void uninitGl(void) {
static int isSoftwareGl(void)
{
const char *renderer = mpglGetString(GL_RENDERER);
return strcmp(renderer, "Software Rasterizer") == 0;
return !renderer || strcmp(renderer, "Software Rasterizer") == 0;
}
static void autodetectGlExtensions(void) {