assert
This commit is contained in:
parent
401f3e0cb2
commit
241b97b315
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Reference in a new issue