Skip to content

Commit ebedcd3

Browse files
fix: multiple index buffers issues in graphics ext (v1.5.1)
1 parent 8e2a747 commit ebedcd3

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

docs/changelog.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
Below is the change log for typical users. Minor and older changes stripped
66
away, please see git history for details.
77

8-
- v0.6.3 (2025-xx-xx) (draw) add image quad (v1.4.0)
9-
(draw) add draw callbacks
10-
(starter) added reverse z depth buffer support (v1.3.0)
8+
- v0.6.3 (2025-xx-xx) (draw) add image quad (v1.4.0)
9+
(draw) add draw callbacks
10+
(starter) added reverse z depth buffer support (v1.3.0)
11+
(graphics) fix draw_indexed multiple index buffers (v1.5.1)
1112
- v0.6.2 (2025-10-08) (draw) performance improvements
1213
(draw) fix draw 3d plane issues
1314
(draw) add text transforms

docs/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ the API is complete. It just means we won't break what currently exists.
6060
* Draw Backend v1.1.0 (pl_draw_backend_ext.h)
6161
* DXT v1.0.0 (pl_dxt_ext.h)
6262
* GPU Allocators v1.0.0 (pl_gpu_allocators_ext.h)
63-
* Graphics v1.5.0 (pl_graphics_ext.h)
63+
* Graphics v1.5.1 (pl_graphics_ext.h)
6464
* Image v1.0.0 (pl_image_ext.h)
6565
* Job v2.2.0 (pl_job_ext.h)
6666
* Atomics v1.0.0 (pl_platform_ext.h)

extensions/pl_graphics_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Index of this file:
114114
// [SECTION] apis
115115
//-----------------------------------------------------------------------------
116116

117-
#define plGraphicsI_version {1, 5, 0}
117+
#define plGraphicsI_version {1, 5, 1}
118118

119119
//-----------------------------------------------------------------------------
120120
// [SECTION] includes

extensions/pl_graphics_vulkan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,9 +2424,9 @@ pl_draw_indexed(plRenderEncoder* ptEncoder, uint32_t uCount, const plDrawIndex *
24242424

24252425
for (uint32_t i = 0; i < uCount; i++)
24262426
{
2427-
if (atDraws->tIndexBuffer.uIndex != uCurrentIndexBuffer)
2427+
if (atDraws[i].tIndexBuffer.uIndex != uCurrentIndexBuffer)
24282428
{
2429-
uCurrentIndexBuffer = atDraws->tIndexBuffer.uIndex;
2429+
uCurrentIndexBuffer = atDraws[i].tIndexBuffer.uIndex;
24302430
plVulkanBuffer* ptIndexBuffer = &ptDevice->sbtBuffersHot[uCurrentIndexBuffer];
24312431
vkCmdBindIndexBuffer(ptCmdBuffer->tCmdBuffer, ptIndexBuffer->tBuffer, 0, VK_INDEX_TYPE_UINT32);
24322432
}

0 commit comments

Comments
 (0)