From 241b97b3154531d3fbb269a13ee3ccdcd9754072 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 May 2023 15:27:50 +0200 Subject: [PATCH] assert --- src/font.c | 2 ++ 1 file changed, 2 insertions(+) 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);