(shader_vulkan.cpp) Fix another 'declaration hides parameter' warning

This commit is contained in:
twinaphex 2019-07-18 19:25:25 +02:00
parent c85707336b
commit da29fd61bb

View File

@ -2348,7 +2348,7 @@ void Pass::build_commands(
} }
else else
{ {
const VkViewport vp = { const VkViewport _vp = {
0.0f, 0.0f, 0.0f, 0.0f,
float(current_framebuffer_size.width), float(current_framebuffer_size.width),
float(current_framebuffer_size.height), float(current_framebuffer_size.height),
@ -2362,7 +2362,7 @@ void Pass::build_commands(
}, },
}; };
vkCmdSetViewport(cmd, 0, 1, &vp); vkCmdSetViewport(cmd, 0, 1, &_vp);
vkCmdSetScissor(cmd, 0, 1, &sci); vkCmdSetScissor(cmd, 0, 1, &sci);
} }