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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user