Recent PR cleared error flags before initialization which crashes Windows projects. On Linux this works fine as OpenGL is already initialized when program starts. On Windows you need to initialize OpenGL with gl3w, before calling any OpenGL function. That's why when we use glGetError(), program crashes as function points to nullptr.
To fix this, we initialize OpenGL before glGetError call.
Recent PR cleared error flags before initialization which crashes Windows projects. On Linux this works fine as OpenGL is already initialized when program starts. On Windows you need to initialize OpenGL with gl3w, before calling any OpenGL function. That's why when we use
glGetError()
, program crashes as function points to nullptr.To fix this, we initialize OpenGL before
glGetError
call.