If you use Cocoa natively (advanced), you need to set NSOpenGLPFAOpenGLProfile to NSOpenGLProfileVersion3_2Core or NSOpenGLProfileVersion4_1Core .
g++ main.cpp -o gltest -framework OpenGL -lglfw -lGLEW ./gltest Opengl 3.3 Download Mac
OpenGL version: 2.1 INTEL-14.7.8 OpenGL vendor: Intel Inc. OpenGL renderer: Intel Iris Pro OpenGL Engine If you use Cocoa natively (advanced), you need
A: Check your Mac's specifications to ensure compatibility. If you use Cocoa natively (advanced)