Merge pull request #74 from kichikuou/gles

Fix text rendering issue in OpenGL ES
This commit is contained in:
Nunuhara Cabbage
2022-10-03 21:54:32 -07:00
committed by GitHub
+1 -1
View File
@@ -532,7 +532,7 @@ void gfx_init_texture_amap(struct texture *t, int w, int h, uint8_t *amap, SDL_C
void gfx_init_texture_rmap(struct texture *t, int w, int h, uint8_t *rmap)
{
init_texture(t, w, h);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, w, h, 0, GL_RED, GL_UNSIGNED_BYTE, rmap);
glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, w, h, 0, GL_RED, GL_UNSIGNED_BYTE, rmap);
}
void gfx_init_texture_blank(struct texture *t, int w, int h)