summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
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;