X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glaze-gl.c;h=04f288ee97473791fdf40d3a1adfca230d75c9fc;hb=acd14c47b39d0fd15f0b7b212b70606e394b2d0b;hp=e7dd728c058b53f31b2ba2f0f73fdb128781512d;hpb=caa8d546aea211396beaebf6f811314ff5979c14;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");