small fix in gui_panel_id
parent
479af28c77
commit
0ddc564a09
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue