Skip to content

Commit

Permalink
[dbgui] fix a critical UB where the draw buffer was set to use draw_i…
Browse files Browse the repository at this point in the history
…ndirect_commands but was expected to use draw_indexed_indirect_commands. this had no issue in practice due to luckily/positioned data members, but was caught by MSVC debugging.
  • Loading branch information
harrand committed Aug 6, 2023
1 parent eaf2cb8 commit ebef8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tz/dbgui/dbgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ namespace tz::dbgui
{
.access = tz::gl::resource_access::dynamic_access
});
tz::gl::buffer_resource draw_buffer = tz::gl::buffer_resource::from_one(tz::gl::draw_indirect_command
tz::gl::buffer_resource draw_buffer = tz::gl::buffer_resource::from_one(tz::gl::draw_indexed_indirect_command
{
.count = 0u,
.first = 0
.first_index = 0
},
{
.access = tz::gl::resource_access::dynamic_access,
Expand Down

0 comments on commit ebef8aa

Please sign in to comment.