Skip to content

Commit 49639b6

Browse files
committed
OpenGL (Linux): fix flag --opengl-library doesn't work
1 parent e5a04ee commit 49639b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/opengl/opengl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool ffParseOpenGLCommandOptions(FFOpenGLOptions* options, const char* key, cons
5252
return true;
5353

5454
#if defined(__linux__) || defined(__FreeBSD__)
55-
if (ffStrEqualsIgnCase(key, "library"))
55+
if (ffStrEqualsIgnCase(subKey, "library"))
5656
{
5757
options->library = (FFOpenGLLibrary) ffOptionParseEnum(key, value, (FFKeyValuePair[]) {
5858
{ "auto", FF_OPENGL_LIBRARY_AUTO },
@@ -61,6 +61,7 @@ bool ffParseOpenGLCommandOptions(FFOpenGLOptions* options, const char* key, cons
6161
{ "osmesa", FF_OPENGL_LIBRARY_OSMESA },
6262
{}
6363
});
64+
return true;
6465
}
6566
#endif
6667

0 commit comments

Comments
 (0)