diff options
m--------- | externals/dynarmic | 0 | ||||
-rw-r--r-- | src/video_core/host_shaders/vulkan_present.vert | 10 |
2 files changed, 4 insertions, 6 deletions
diff --git a/externals/dynarmic b/externals/dynarmic -Subproject ca0e264f4f962e29baa23a3282ce484625866b9 +Subproject ba8192d89078af51ae6f97c9352e3683612cdff diff --git a/src/video_core/host_shaders/vulkan_present.vert b/src/video_core/host_shaders/vulkan_present.vert index 249c9675a..c0e6e8537 100644 --- a/src/video_core/host_shaders/vulkan_present.vert +++ b/src/video_core/host_shaders/vulkan_present.vert @@ -19,15 +19,13 @@ layout (push_constant) uniform PushConstants { // Any member of a push constant block that is declared as an // array must only be accessed with dynamically uniform indices. ScreenRectVertex GetVertex(int index) { - switch (index) { - case 0: - default: + if (index < 1) { return vertices[0]; - case 1: + } else if (index < 2) { return vertices[1]; - case 2: + } else if (index < 3) { return vertices[2]; - case 3: + } else { return vertices[3]; } } |