The code uses glBegin() / glEnd() and other APIs removed from core profile.
Attach a file by drag & drop or click to upload