mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-27 17:08:36 +00:00
st/oxr: Fix renderdoc build on Windows.
This commit is contained in:
parent
e79a13f0ac
commit
ccbb658e49
|
@ -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
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue