When loading OpenGL 4.0, the loader was setting the GLVersion to GL30 instead of GL40.