Fixed crash if the OpenGL library hasn't been loaded yet