Skip to content

Commit 92c17b8

Browse files
committed
fix a scissor bug in imgui handling
1 parent 4c761ea commit 92c17b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/imgui/ImguiEntity.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ namespace gf {
8686
const Vec2F max((command->ClipRect.z - position.x) * scale.x, (command->ClipRect.w - position.y) * scale.y);
8787
object.scissor = RectI::from_min_max(min, max);
8888

89+
object.scissor.offset = gf::max(object.scissor.offset, { 0, 0 }); // because VUID-vkCmdSetScissor-x-00595
90+
8991
// count, first, offset
9092

9193
object.size = command->ElemCount;

0 commit comments

Comments
 (0)