Loading Renderdoc Wrong #2793
Labels
area: infrastructure
Testing, building, coordinating issues
good first issue
Good for newcomers
help required
We need community help to make this happen.
type: bug
Something isn't working
Description
See #2789 for original issue.
We aren't properly loading renderdoc. We are missing some flags that needs to be passed to dlopen to make sure we never actually load renderdoc's ourselves we only pull the existing copy.
See the documentation here for more info: https://renderdoc.org/docs/in_application_api.html
The important bit:
In libloading terms:
On windows this should call https://docs.rs/libloading/latest/libloading/os/windows/struct.Library.html#method.open_already_loaded which is GetModuleHandle.
On linux this should call https://docs.rs/libloading/latest/libloading/os/unix/struct.Library.html#method.open with
RTLD_NOW | RTLD_NOLOAD
- the latter needs to be added to lib loading, but it's just an integer so we can just specify the value until lib loading adds it.The text was updated successfully, but these errors were encountered: