aboutsummaryrefslogtreecommitdiff
path: root/src/window/window.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-16 23:05:49 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-16 23:05:49 +0100
commitccd0e65a0ddccd9c52d4c075ec1cad41ae7edb40 (patch)
treefac6702c78c2fbb18bf049cdb670b1e98cc32ce6 /src/window/window.c
parente0b1d92dd4ab93ac0f75dda7adc0f5274558dec1 (diff)
Make unpack alignment byte-sized globally
Diffstat (limited to 'src/window/window.c')
-rw-r--r--src/window/window.c1
1 files changed, 1 insertions, 0 deletions
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;