add GL_TEXTURE_MAG_FILTER

This commit is contained in:
Mylloon 2023-05-08 15:31:06 +02:00
parent 241b97b315
commit 1031f163a2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -20,6 +20,7 @@ int writeText(GLuint *_textTexId, TTF_Font *font, char *text, SDL_Color color) {
glBindTexture(GL_TEXTURE_2D, *_textTexId);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
SDL_Surface *d, *s;
if (!(d = TTF_RenderUTF8_Blended_Wrapped(font, text, color, 0))) {