glCreateWindow throws null on M1


I can’t really understand what is causing issue so asking your advise.

OS: Mac 12.2.1 Monterey
Processor: Apple Silicon M1
Device: Apple Mac Pro M1 Max
Visual Studio Code
GLFW: libglfw.3.3.dylib

Is there something I need to look into?


	"version": "2.0.0",
	"tasks": [
			"type": "cppbuild",
			"label": "C/C++: clang++ build active file",
			"command": "/usr/bin/clang++",
			"args": [
			"options": {
				"cwd": "${workspaceFolder}/build"
			"problemMatcher": [
			"group": {
				"kind": "build",
				"isDefault": true
			"detail": "compiler: /usr/bin/clang++"


    "version": "0.2.0",
    "configurations": [
            "name": "Debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build/Point3D",
            "args": [],
            "cwd": "${workspaceFolder}",
            "stopAtEntry": true,
            "MIMode": "lldb",
            "preLaunchTask": "C/C++: clang++ build active file"

Thanks in advance,

OMG, I found that M1 isn’t compatible with GLSL 460, so that’s the reason glCreateWindow returns NULL, but it works fine with 410.
Problem solved, thanks!