[Vulkan] Fix primary_queue_mutex usage in vulkan_graphics_system.cc

This commit is contained in:
Triang3l 2021-03-04 18:32:27 +03:00 committed by GitHub
parent 5ae6c7eaf8
commit 99024aec32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ std::unique_ptr<RawImage> VulkanGraphicsSystem::Capture() {
// Submit commands and wait. // Submit commands and wait.
if (status == VK_SUCCESS) { if (status == VK_SUCCESS) {
std::lock_guard<std::mutex>(device_->primary_queue_mutex()); std::lock_guard<std::mutex> lock(device_->primary_queue_mutex());
VkSubmitInfo submit_info = { VkSubmitInfo submit_info = {
VK_STRUCTURE_TYPE_SUBMIT_INFO, VK_STRUCTURE_TYPE_SUBMIT_INFO,
nullptr, nullptr,