diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 4c92be3..52a53c8 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -360911,11 +360911,12 @@ 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 = gui_getscissorrect(skin, NULL, rect); + scissor = rect; if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); - glScissor(scissor.x, scissor.y, scissor.z, scissor.w); + glScissor(scissor.x, window_height()-scissor.w-scissor.y, scissor.z, scissor.w); array_push(scissor_rects, scissor); } diff --git a/engine/split/v4k_gui.c b/engine/split/v4k_gui.c index ec68727..e57ef48 100644 --- a/engine/split/v4k_gui.c +++ b/engine/split/v4k_gui.c @@ -145,11 +145,12 @@ 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 = gui_getscissorrect(skin, NULL, rect); + scissor = rect; if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); - glScissor(scissor.x, scissor.y, scissor.z, scissor.w); + glScissor(scissor.x, window_height()-scissor.w-scissor.y, scissor.z, scissor.w); array_push(scissor_rects, scissor); } diff --git a/engine/v4k.c b/engine/v4k.c index 31fec2a..39180f1 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -11231,11 +11231,12 @@ 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 = gui_getscissorrect(skin, NULL, rect); + scissor = rect; if (!array_count(scissor_rects)) glEnable(GL_SCISSOR_TEST); - glScissor(scissor.x, scissor.y, scissor.z, scissor.w); + glScissor(scissor.x, window_height()-scissor.w-scissor.y, scissor.z, scissor.w); array_push(scissor_rects, scissor); }