[Vulkan] Fix warning related to nameless variables
This commit is contained in:
parent
9aaa161237
commit
172f10b1b2
|
@ -968,7 +968,7 @@ void TextureCache::FlushPendingCommands(VkCommandBuffer command_buffer,
|
||||||
vkQueueSubmit(device_queue_, 1, &submit_info, completion_fence);
|
vkQueueSubmit(device_queue_, 1, &submit_info, completion_fence);
|
||||||
CheckResult(status, "vkQueueSubmit");
|
CheckResult(status, "vkQueueSubmit");
|
||||||
} else {
|
} else {
|
||||||
std::lock_guard<std::mutex>(device_->primary_queue_mutex());
|
std::lock_guard<std::mutex> lock(device_->primary_queue_mutex());
|
||||||
|
|
||||||
auto status = vkQueueSubmit(device_->primary_queue(), 1, &submit_info,
|
auto status = vkQueueSubmit(device_->primary_queue(), 1, &submit_info,
|
||||||
completion_fence);
|
completion_fence);
|
||||||
|
@ -1351,7 +1351,7 @@ void TextureCache::WritebackTexture(Texture* texture) {
|
||||||
// Submit the command buffer.
|
// Submit the command buffer.
|
||||||
// Submit commands and wait.
|
// Submit commands and wait.
|
||||||
{
|
{
|
||||||
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,
|
||||||
|
|
|
@ -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