use core profile, remove deprecated opengl code #51