From a167646ab3d06ff45d27de064c5087fd64367c60 Mon Sep 17 00:00:00 2001 From: evan-bertis-sample Date: Sun, 14 Jul 2024 22:10:12 -0400 Subject: [PATCH] Range fix on draw command --- impl/gs_graphics_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/gs_graphics_impl.h b/impl/gs_graphics_impl.h index 40d6daa..d55d064 100644 --- a/impl/gs_graphics_impl.h +++ b/impl/gs_graphics_impl.h @@ -2686,7 +2686,7 @@ void gs_graphics_command_buffer_submit_impl(gs_command_buffer_t* cb) gs_byte_buffer_readc(&cb->commands, uint32_t, range_start); gs_byte_buffer_readc(&cb->commands, uint32_t, range_end); - range_end = (range_end && range_end < range_start) ? range_end : count; + range_end = (range_end && range_end > range_start) ? range_end : start + count; // Bind element buffer ranged if (ogl->cache.ibo) {