diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 52a53c8..3b017c7 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -360911,8 +360911,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); diff --git a/engine/split/v4k_gui.c b/engine/split/v4k_gui.c index e57ef48..49a5119 100644 --- a/engine/split/v4k_gui.c +++ b/engine/split/v4k_gui.c @@ -145,8 +145,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); diff --git a/engine/v4k.c b/engine/v4k.c index 39180f1..6a73fd3 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -11231,8 +11231,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) { (void)id; vec4 scissor={0, 0, window_width(), window_height()}; if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); - // scissor = gui_getscissorrect(skin, NULL, rect); - scissor = rect; + scissor = gui_getscissorrect(skin, NULL, rect); if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST);