Skip to content

Commit

Permalink
Range fix on draw command
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-Bertis-Sample committed Jul 15, 2024
1 parent 52e83ed commit a167646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/gs_graphics_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a167646

Please sign in to comment.