summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 6655488..d3a7234 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -3728,11 +3728,11 @@ void RecordCommandBuffer(VkCommandBuffer commandBuffer, uint32_t imageIndex) {
vkCmdSetScissor(commandBuffer, 0, 1, &scissor);
// 2d - font glyphs
- FontTypeIndex count;
- FontType *fts = FontType_GetFonts(count);
- for (FontTypeIndex i = FontTypeIndex{0}; i < count; ++i)
- {
- FontType *ft = &fts[(FontTypeIndex_T)i];
+ uint64_t idx_unused;
+ FontType *fts = FontType_GetFonts(idx_unused);
+ for (uint32_t u = 0; u < 64; ++u) {
+ if ((idx_unused & (1llu << u)) != 0) continue;
+ FontType *ft = &fts[(FontTypeIndex_T)u];
if (ft->bindings.instance_counter == 0)
continue;
vkCmdBindPipeline(commandBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pkePipelines.pipelines.named.font_glyph);