summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-02-06 14:52:17 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-02-06 14:52:17 -0500
commit9e41b050a71047aeef2df35135d9c09743821f01 (patch)
treeb2d1f655135aebb7e1aad380d51a8087f8949313 /src/window.cpp
parent4193a3e6c9b8fe7d5f7dff0ad62d0db8c3eb2851 (diff)
pke: glyph attribute offsets + cleanup
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index ecaea14..5a3e2cb 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1806,14 +1806,13 @@ void CreateGraphicsPipelines() {
// vertex - in_atlas_size
vertAttrDesc_glyph[index].binding = 2;
vertAttrDesc_glyph[index].format = VK_FORMAT_R32G32_SFLOAT;
- vertAttrDesc_glyph[index].offset = offset;
- offset += sizeof(glm::vec2);
+ vertAttrDesc_glyph[index].offset = 0;
index += 1;
// instance - in_fg_color
vertAttrDesc_glyph[index].binding = 3;
vertAttrDesc_glyph[index].format = VK_FORMAT_R32G32B32A32_SFLOAT;
- vertAttrDesc_glyph[index].offset = 0;
+ vertAttrDesc_glyph[index].offset = offset;
offset += sizeof(glm::vec4);
index += 1;