Texture/Quad renders only if wglCreateContextAttribsARB maj/min version set to 3.0

I’m using GTX1050Ti/Windows 10 with Nvidia OpenGL 4.6 driver. In creating a rendering context using wglCreateContextAttribsARB, if WGL_CONTEXT_MAJOR_VERSION_ARB and WGL_CONTEXT_MINOR_VERSION_ARB are set to 4 and 6 respectively, then Texture/Quad does not render. However changing major/minor version to 3.0 or 3.1 causes no issues. Setting version to any other value (ex: 4.5) results in no rendering of texture/quad.
Appreciate any insight as to what could be causing this issue. Thanks.


Then I would read a little in here: WGL_ARB_create_context about how your context create request is handled based on what GL version you request and whether or not you request a CORE or COMPATIBILITY profile. Just search down to “The default values for WGL_CONTEXT_MAJOR_VERSION_ARB” and read for ~5 paragraphs.

Thank you @DARK PHOTON. Your recommendation solved the rendering issue.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.