add GL_TEXTURE_MAG_FILTER
This commit is contained in:
parent
241b97b315
commit
1031f163a2
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ int writeText(GLuint *_textTexId, TTF_Font *font, char *text, SDL_Color color) {
|
||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, *_textTexId);
|
glBindTexture(GL_TEXTURE_2D, *_textTexId);
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||||
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||||
|
|
||||||
SDL_Surface *d, *s;
|
SDL_Surface *d, *s;
|
||||||
if (!(d = TTF_RenderUTF8_Blended_Wrapped(font, text, color, 0))) {
|
if (!(d = TTF_RenderUTF8_Blended_Wrapped(font, text, color, 0))) {
|
||||||
|
|
Reference in a new issue