diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-16 16:58:02 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-16 17:00:08 -0400 |
| commit | 73c5e170260638cc566cba2689ea570caee39251 (patch) | |
| tree | 256b36398d33650054a885e572437909f88485cb /src/window.cpp | |
| parent | e52ef2e49ae660833370befc34ba79d412cb4604 (diff) | |
pke: major object lifetime overhaul.
Added pke-test-load-unload to ensure objects are
managed as expected.
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 10 |
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); |
