st/oxr: Fix renderdoc build on Windows.

This commit is contained in:
Ryan Pavlik 2022-05-04 18:18:54 -05:00
parent e79a13f0ac
commit ccbb658e49
2 changed files with 5 additions and 2 deletions

View file

@ -391,7 +391,7 @@ oxr_instance_create(struct oxr_logger *log,
HMODULE mod = GetModuleHandleA("renderdoc.dll");
if (mod) {
pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)GetProcAddress(mod, "RENDERDOC_GetAPI");
int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&rdoc_api);
int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&inst->rdoc_api);
assert(ret == 1);
}
#endif

View file

@ -14,6 +14,7 @@
#include "xrt/xrt_compositor.h"
#include "xrt/xrt_vulkan_includes.h"
#include "xrt/xrt_openxr_includes.h"
#include "xrt/xrt_config_os.h"
#include "os/os_threading.h"
@ -27,8 +28,10 @@
#ifdef XRT_FEATURE_RENDERDOC
#include "renderdoc_app.h"
#ifndef XRT_OS_WINDOWS
#include <dlfcn.h>
#endif
#endif // !XRT_OS_WINDOWS
#endif // XRT_FEATURE_RENDERDOC
#ifdef __cplusplus
extern "C" {