win-capture/graphics-hook: Add a bit of logging
Just makes sure to be explicit when a device isn't valid.
This commit is contained in:
parent
f7b6efe66b
commit
98c1ac2f80
@ -973,6 +973,7 @@ static void vk_capture(struct vk_data *data, VkQueue queue,
|
||||
if (valid_rect(swap) && !vk_shtex_init(data, window, swap)) {
|
||||
vk_shtex_free(data);
|
||||
data->valid = false;
|
||||
flog("vk_shtex_init failed");
|
||||
}
|
||||
}
|
||||
if (capture_ready()) {
|
||||
@ -1261,6 +1262,7 @@ static VkResult VKAPI OBS_CreateDevice(VkPhysicalDevice phy_device,
|
||||
goto fail;
|
||||
}
|
||||
if (!idata->valid) {
|
||||
flog("instance not valid");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user