diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c index 88df3ab6f..89a29a5f0 100644 --- a/src/xrt/state_trackers/oxr/oxr_instance.c +++ b/src/xrt/state_trackers/oxr/oxr_instance.c @@ -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 diff --git a/src/xrt/state_trackers/oxr/oxr_objects.h b/src/xrt/state_trackers/oxr/oxr_objects.h index 7689522cc..0e37f738f 100644 --- a/src/xrt/state_trackers/oxr/oxr_objects.h +++ b/src/xrt/state_trackers/oxr/oxr_objects.h @@ -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 -#endif +#endif // !XRT_OS_WINDOWS +#endif // XRT_FEATURE_RENDERDOC #ifdef __cplusplus extern "C" {