From e0b1d92dd4ab93ac0f75dda7adc0f5274558dec1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 16 Nov 2021 23:03:58 +0100 Subject: Texture: only do one glTexSubImage2D in mgl_texture_update instead of |height| number of times --- include/mgl/gl.h | 1 + include/mgl/gl_macro.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/mgl/gl.h b/include/mgl/gl.h index 7dc1dd7..894e57b 100644 --- a/include/mgl/gl.h +++ b/include/mgl/gl.h @@ -73,6 +73,7 @@ typedef struct { unsigned int (*glGetError)(void); const unsigned char* (*glGetString)(unsigned int name); void (*glGetIntegerv)(unsigned int pname, int *params); + void (*glPixelStorei)(unsigned int pname, int param); /* Optional*/ void (*glXSwapIntervalEXT)(Display * dpy, GLXDrawable drawable, int interval); diff --git a/include/mgl/gl_macro.h b/include/mgl/gl_macro.h index 5e634df..0db0a60 100644 --- a/include/mgl/gl_macro.h +++ b/include/mgl/gl_macro.h @@ -85,6 +85,8 @@ #define GL_LINK_STATUS 0x8B82 #define GL_COMPILE_STATUS 0x8B81 +#define GL_UNPACK_ALIGNMENT 0x0CF5 + #define GL_FALSE 0 #define GL_TRUE 1 -- cgit v1.2.3