small fix in gui_panel_id

main
Dominik Madarász 2023-12-11 19:03:29 +01:00
parent 479af28c77
commit 0ddc564a09
3 changed files with 3 additions and 6 deletions

View File

@ -360911,8 +360911,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) {
(void)id; (void)id;
vec4 scissor={0, 0, window_width(), window_height()}; vec4 scissor={0, 0, window_width(), window_height()};
if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); 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)) if (!array_count(scissor_rects))
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);

View File

@ -145,8 +145,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) {
(void)id; (void)id;
vec4 scissor={0, 0, window_width(), window_height()}; vec4 scissor={0, 0, window_width(), window_height()};
if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); 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)) if (!array_count(scissor_rects))
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);

View File

@ -11231,8 +11231,7 @@ void gui_panel_id(int id, vec4 rect, const char *skin) {
(void)id; (void)id;
vec4 scissor={0, 0, window_width(), window_height()}; vec4 scissor={0, 0, window_width(), window_height()};
if (last_skin->drawrect) last_skin->drawrect(last_skin->userdata, skin, NULL, rect); 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)) if (!array_count(scissor_rects))
glEnable(GL_SCISSOR_TEST); glEnable(GL_SCISSOR_TEST);