#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
#define WGL_CONTEXT_FLAGS_ARB 0x2094
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
typedef HGLRC(WINAPI* PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC, HGLRC, const int*);
I tried a couple of hexidecimal to decimal converters on 0x2091 and 0x2902 for the WGL_CONTEXT_MAJOR_VERSION_ARB and WGL_CONTEXT_MINOR_VERSION_ARB values. Things don’t seem to convert anything close to the OpenGL 3 for major and three for the minor context that is being loaded here. WinMain.cpp is set up to load with glad (Hands-On-Game-Animation-Programming-master.zip, Packt publishing). I have the Iris Xe graphics card which does seem to load a 4.6 context running on Windows 11 Pro.
So far I tried setting 4 for the major ARB and 6 for the minor ARB but there is some type of fault being generated by Visual Studio… So far I have 0x2091 converting to 8337 in decimal which does not seem to be anything close to 3 like the context that is being loaded?
So in this case with glad set up how should I set up WGL_CONTEXT_MAJOR_VERSION_ARB, and WGL_CONTEXT_MINOR_VERSION_ARB (and whatever else needs to be changed it?) to load an OpenGL 4.6 context?