Update code/platform_win32/4ed_dx11_render.cpp

Co-authored-by: Simon Anciaux <14198779+mrmixer@users.noreply.github.com>
This commit is contained in:
flyingsolomon 2025-03-25 10:04:27 +02:00 committed by Peter Slattery
parent 27b4626907
commit 0ee8e3904a
1 changed files with 3 additions and 1 deletions

View File

@ -561,7 +561,9 @@ gl_render(Render_Target *t){
Rect_i32 box = Ri32(group->clip_box);
// NOTE(FS): Ignore this group if we our scissor rectangle is not well defined
if ((rect_width(box) <= 0) || (rect_height(box) <= 0)) continue;
if ((rect_width(box) <= 0) || (rect_height(box) <= 0)) {
continue;
}
D3D11_RECT group_scissor = { };
group_scissor.left = box.x0;