Fix: Vulkan code build failure when Renderdoc is enabled

8ae0264459 broke the build when both Vulkan and Renderdoc options
are on
This commit is contained in:
Aras Pranckevicius
2024-09-01 12:32:02 +03:00
parent 7675b5a0b4
commit 4b76b398d5

View File

@@ -74,7 +74,7 @@ bool VKContext::debug_capture_scope_begin(void *scope)
if (StringRefNull(title) != StringRefNull(G.gpu_debug_scope_name)) {
return false;
}
GLBackend::get()->debug_capture_begin(title);
VKBackend::get().debug_capture_begin(title);
#endif
UNUSED_VARS(scope);
return false;
@@ -85,7 +85,7 @@ void VKContext::debug_capture_scope_end(void *scope)
#ifdef WITH_RENDERDOC
const char *title = (const char *)scope;
if (StringRefNull(title) == StringRefNull(G.gpu_debug_scope_name)) {
GLBackend::get()->debug_capture_end();
VKBackend::get().debug_capture_end();
}
#endif
}