same error code for ttf font
This commit is contained in:
parent
fa623bf8db
commit
c813bf3167
1 changed files with 5 additions and 2 deletions
|
@ -30,10 +30,13 @@ static void init(void) {
|
|||
gl4duGenMatrix(GL_FLOAT, "proj");
|
||||
_quadId = gl4dgGenQuadf();
|
||||
|
||||
// Code utilisé en tant qu'erreur de TTF_Font
|
||||
int errStatus = 1;
|
||||
|
||||
// Charge la police
|
||||
TTF_Font *font = NULL;
|
||||
if (initFont(&font, "fonts/Instrument.ttf", 100)) {
|
||||
exit(1);
|
||||
exit(errStatus);
|
||||
}
|
||||
|
||||
// Ecrit avec la police sur une texture
|
||||
|
@ -44,7 +47,7 @@ static void init(void) {
|
|||
"Audio: beepbox\n"
|
||||
"Librairies: GL4D, SDL2 et extensions",
|
||||
(SDL_Color){255, 255, 255, 255})) {
|
||||
exit(1);
|
||||
exit(errStatus);
|
||||
}
|
||||
|
||||
// Libère la police de la mémoire
|
||||
|
|
Reference in a new issue