diff --git a/src/font.c b/src/font.c index 0503ca6..1057b17 100644 --- a/src/font.c +++ b/src/font.c @@ -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);