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");