From ccd0e65a0ddccd9c52d4c075ec1cad41ae7edb40 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 16 Nov 2021 23:05:49 +0100 Subject: Make unpack alignment byte-sized globally --- src/window/window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 65a2509..3dbb81f 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -326,6 +326,7 @@ static int mgl_window_init(mgl_window *self, const char *title, const mgl_window context->gl.glEnableClientState(GL_VERTEX_ARRAY); context->gl.glEnableClientState(GL_TEXTURE_COORD_ARRAY); context->gl.glEnableClientState(GL_COLOR_ARRAY); + context->gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1); Window dummy_w; int dummy_i; -- cgit v1.2.3