aboutsummaryrefslogtreecommitdiff
path: root/include/mgl
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-05 14:44:21 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-05 14:44:21 +0100
commitccb3e58071b3e807109918184727b305df8b96a0 (patch)
treed8830f9a3ec84ea17fea064b3ff27b2112c4ca74 /include/mgl
parent7dd8b0cc0561c5fa0c9096b79fb7f0647b3470b4 (diff)
Fix font being corrupt with certain sizes, fix image being corrupt if its rgb, fix window resize incorrect size
Diffstat (limited to 'include/mgl')
-rw-r--r--include/mgl/gl.h1
-rw-r--r--include/mgl/gl_macro.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h
index c9a709d..1d19339 100644
--- a/include/mgl/gl.h
+++ b/include/mgl/gl.h
@@ -27,7 +27,6 @@ typedef struct {
void (*glGenTextures)(int n, unsigned int *textures);
void (*glDeleteTextures)(int n, const unsigned int *textures);
void (*glTexImage2D)(unsigned int target, int level, int internalFormat, int width, int height, int border, unsigned int format, unsigned int type, const void *pixels);
- void (*glCompressedTexImage2D)(unsigned int target, int level, unsigned int internalformat, int width, int height, int border, int imageSize, const void *data);
void (*glBindTexture)(unsigned int target, unsigned int texture);
void (*glTexParameteri)(unsigned int target, unsigned int pname, int param);
void (*glHint)(unsigned int target, unsigned int mode);
diff --git a/include/mgl/gl_macro.h b/include/mgl/gl_macro.h
index c47c8fb..aa264ee 100644
--- a/include/mgl/gl_macro.h
+++ b/include/mgl/gl_macro.h
@@ -31,6 +31,8 @@
#define GL_UNSIGNED_BYTE 0x1401
#define GL_ALPHA 0x1906
+#define GL_LUMINANCE 0x1909
+#define GL_LUMINANCE_ALPHA 0x190A
#define GL_RGB 0x1907
#define GL_RGBA 0x1908