[Vulkan] Fix primary_queue_mutex usage in vulkan_graphics_system.cc
This commit is contained in:
parent
5ae6c7eaf8
commit
99024aec32
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue