baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.6k stars 1.3k forks source link

the overlay does not appear, and no additional information appears after launch mingw glfw application #3335

Closed zenbooster closed 1 month ago

zenbooster commented 1 month ago

Description

I have a project that uses mingw, glfw, opengl 3.3: https://github.com/zenbooster/alphawater/tree/mpshader that I would like to debug. I downloaded and installed the latest version of renderdoc, launched my application through it, and saw that my application worked. Renderdoc reported: Connection Status: Estabilished API: OpenGL (Active) then, after ~11 seconds: API: OpenGL (Not Presenting)

At the same time, the overlay does not appear, and no additional information appears either.

Steps to reproduce

  1. Open the application in renderdoc.

Environment

Sample: test.zip

baldurk commented 1 month ago

This is caused by your application unbinding the GL context before presenting. Due to limitations in how the GL API is designed RenderDoc needs a context current when presenting to properly associate a window with a particular context.

As far as I'm aware there's no reason to unbind a context before presenting, so leaving your context bound should fix this issue.

zenbooster commented 1 month ago

Yes thank you! This really helped.