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: WGL, Core Context and RenderDoc?

  1. #1
    Intern Contributor
    Join Date
    Jan 2017
    Posts
    54

    WGL, Core Context and RenderDoc?

    Hi Folks:

    RenderDoc caught my attention while browsing OpenGL topics.

    RenderDoc might be useless to someone with my low skill level, but I want to take a quick look at it.

    When RenderDoc launches one of the working tutorial exercises it displays "0 Captures saved".

    The next line says "Warning: Non-core context in use. Compatibility profile not supported".

    This seems to be an issue when working with older, pre-3.3, OpenGL. I have no interest in older versions of OpenGL.

    I removed of WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB in the context attributes and added WGL_CONTEXT_CORE_PROFILE_BIT_ARB.

    Of course, I have a very limited understanding of the context attributes. The OpenGL setup code was lifted from this tutorial, and has been serving me well.

    RenderDoc is still displaying the warning, and not capturing.

    What else do I need in order to be running a modern OpenGL core that RenderDoc can work with?

    Thanks
    Larry
    Last edited by larryl; 05-11-2017 at 05:57 PM.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    420
    Yes, regarding what I quickly found in their main page, you need at least an OpenGL 3.2 core profile.
    You could also read their documentation, and specially this stuff.

  3. #3
    Intern Contributor
    Join Date
    Jan 2017
    Posts
    54
    Thanks Silence:

    Since I've only been developing code for OpenGL 3.3 and later I assumed I must have had everything configured for modern OpenGL. I was surprised when this failed, and I found out some obscure attribute still needed to be set.

    I think I'm on the right track now.

    I'd set WGL_CONTEXT_CORE_PROFILE_BIT_ARB in the context attributes, but that doesn't mean much, apparently, unless it follows WGL_CONTEXT_PROFILE_MASK_ARB.

    That's done. But who knows what weird things still need to be dealt with?

    RenderDoc seems to be capturing stuff now. I'll see if it's something I can use.

    I'm always interested in any debuggers.

    I first heard about the tool here, which was linked by Khronos' home page here.

    Anybody try it?

    As always, I appreciate your response.

    Larry
    Last edited by larryl; 05-12-2017 at 03:51 AM.

Posting Permissions

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