From 269cab0f80d49734a613ee4577f783ed870a8e1b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 5 Aug 2024 05:42:31 +0200 Subject: set scissor const --- src/window/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 06b5a6b..701fbb3 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -1628,7 +1628,7 @@ void mgl_window_get_view(mgl_window *self, mgl_view *view) { *view = self->view; } -void mgl_window_set_scissor(mgl_window *self, mgl_scissor *new_scissor) { +void mgl_window_set_scissor(mgl_window *self, const mgl_scissor *new_scissor) { mgl_context *context = mgl_get_context(); self->scissor = *new_scissor; context->gl.glScissor(self->scissor.position.x, self->size.y - self->scissor.position.y - self->scissor.size.y, self->scissor.size.x, self->scissor.size.y); -- cgit v1.2.3