summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-10 18:02:37 +0100
committerLiam <byteslice@airmail.cc>2024-02-10 18:02:37 +0100
commit4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf (patch)
tree9654d6aa7e1ce6df38bb58f72caa85e1c5dab4aa
parentFix multiplayer player count color in dark themes | Temp fix until #12744: Add green color for counts > 0 and < max_players - 1 (#12930) (diff)
downloadyuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.gz
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.bz2
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.lz
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.xz
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.zst
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.zip
-rw-r--r--src/video_core/host_shaders/vulkan_present.vert10
1 files changed, 4 insertions, 6 deletions
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];
}
}