X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=glaze-gl.c;fp=glaze-gl.c;h=04f288ee97473791fdf40d3a1adfca230d75c9fc;hb=ac96e5c9b7b834687eebc503580937934b9abc57;hp=e7dd728c058b53f31b2ba2f0f73fdb128781512d;hpb=acb1372fca12d1df8bead92eb2ab16dbc98b9c6c;p=glaze diff --git a/glaze-gl.c b/glaze-gl.c index e7dd728..04f288e 100644 --- a/glaze-gl.c +++ b/glaze-gl.c @@ -51,7 +51,7 @@ open_libgl_handle (void) libgl_path = getenv ("GLAZE_LIBGL_64_AUTO"); #endif - if (libgl_path == NULL) { + if (libgl_path == NULL || strlen (libgl_path) == 0) { fprintf (stderr, "Error: Failed to detect OpenGL library.\n" "Please set GLAZE_LIBGL to path of real libGL.so\n");