From ccb3e58071b3e807109918184727b305df8b96a0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 5 Nov 2021 14:44:21 +0100 Subject: Fix font being corrupt with certain sizes, fix image being corrupt if its rgb, fix window resize incorrect size --- include/mgl/gl.h | 1 - include/mgl/gl_macro.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include/mgl') 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 -- cgit v1.2.3