This commit is contained in:
Mylloon 2023-05-08 15:27:50 +02:00
parent 401f3e0cb2
commit 241b97b315
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -16,6 +16,8 @@ int initFont(TTF_Font **font, char *filename, int size) {
int writeText(GLuint *_textTexId, TTF_Font *font, char *text, SDL_Color color) {
glGenTextures(1, _textTexId);
assert(_textTexId);
glBindTexture(GL_TEXTURE_2D, *_textTexId);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);