Skip to content

Commit

Permalink
Merge pull request #98 from Evan-Bertis-Sample/master
Browse files Browse the repository at this point in the history
Range fix on draw command
  • Loading branch information
MrFrenik authored Jul 15, 2024
2 parents 52e83ed + a167646 commit e6fb33b
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 e6fb33b

Please sign in to comment.