fixed "unused function" in case of unavailable OpenGL