Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

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

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2018
    Posts
    3

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

    Hi,
    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.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,569
    Try also specifying WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB.

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2018
    Posts
    3
    Thank you @DARK PHOTON. Your recommendation solved the rendering issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •