PDA

View Full Version : WGL, Core Context and RenderDoc?



larryl
05-11-2017, 05:08 PM
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 (http://www.mbsoftworks.sk/index.php?page=tutorials&series=1&tutorial=2) 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

Silence
05-11-2017, 11:58 PM
Yes, regarding what I quickly found in their main page (https://github.com/baldurk/renderdoc#api-support), you need at least an OpenGL 3.2 core profile.
You could also read their documentation, and specially this stuff (https://renderdoc.org/docs/behind_scenes/opengl_support.html#opengl-requirements-and-limitations).

larryl
05-12-2017, 12:30 AM
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 (http://lpgpu.org/wp/2017/04/opengl-opengl-es-vulkan-tools-survey-results/), which was linked by Khronos' home page here (https://www.opengl.org/).

Anybody try it?

As always, I appreciate your response.

Larry