Using OpenGL 4.1 and error message fixed in resourceloader