diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-05 14:44:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-05 14:44:21 +0100 |
commit | ccb3e58071b3e807109918184727b305df8b96a0 (patch) | |
tree | d8830f9a3ec84ea17fea064b3ff27b2112c4ca74 /src/graphics/texture.c | |
parent | 7dd8b0cc0561c5fa0c9096b79fb7f0647b3470b4 (diff) |
Fix font being corrupt with certain sizes, fix image being corrupt if its rgb, fix window resize incorrect size
Diffstat (limited to 'src/graphics/texture.c')
-rw-r--r-- | src/graphics/texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/texture.c b/src/graphics/texture.c index c70c0f9..f6549f1 100644 --- a/src/graphics/texture.c +++ b/src/graphics/texture.c @@ -30,8 +30,8 @@ static int mgl_texture_format_to_compressed_opengl_format(mgl_texture_format for static int mgl_texture_format_to_source_opengl_format(mgl_texture_format format) { switch(format) { case MGL_TEXTURE_FORMAT_ALPHA: return GL_ALPHA; - case MGL_TEXTURE_FORMAT_GRAY: return GL_LUMINANCE8; - case MGL_TEXTURE_FORMAT_GRAY_ALPHA: return GL_LUMINANCE8_ALPHA8; + case MGL_TEXTURE_FORMAT_GRAY: return GL_LUMINANCE; + case MGL_TEXTURE_FORMAT_GRAY_ALPHA: return GL_LUMINANCE_ALPHA; case MGL_TEXTURE_FORMAT_RGB: return GL_RGB; case MGL_TEXTURE_FORMAT_RGBA: return GL_RGBA; } |