mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +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");
|
HMODULE mod = GetModuleHandleA("renderdoc.dll");
|
||||||
if (mod) {
|
if (mod) {
|
||||||
pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)GetProcAddress(mod, "RENDERDOC_GetAPI");
|
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);
|
assert(ret == 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include "xrt/xrt_compositor.h"
|
#include "xrt/xrt_compositor.h"
|
||||||
#include "xrt/xrt_vulkan_includes.h"
|
#include "xrt/xrt_vulkan_includes.h"
|
||||||
#include "xrt/xrt_openxr_includes.h"
|
#include "xrt/xrt_openxr_includes.h"
|
||||||
|
#include "xrt/xrt_config_os.h"
|
||||||
|
|
||||||
#include "os/os_threading.h"
|
#include "os/os_threading.h"
|
||||||
|
|
||||||
|
@ -27,8 +28,10 @@
|
||||||
|
|
||||||
#ifdef XRT_FEATURE_RENDERDOC
|
#ifdef XRT_FEATURE_RENDERDOC
|
||||||
#include "renderdoc_app.h"
|
#include "renderdoc_app.h"
|
||||||
|
#ifndef XRT_OS_WINDOWS
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif // !XRT_OS_WINDOWS
|
||||||
|
#endif // XRT_FEATURE_RENDERDOC
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in a new issue