I am following the GLFW guide to getting started but I can\'t seem to make it run with GLAD.
Here\'s my C file (prac.c)
#include #include
You have to call initialize glad before calling any OpenGL instruction. That means gladLoadGL() has to be done before glGetString(GL_VERSION):
gladLoadGL()
glGetString(GL_VERSION)
glfwMakeContextCurrent(window); gladLoadGL(); printf("OpenGL version: %s\n", glGetString(GL_VERSION));