correctly exit if have not found console fonts

This commit is contained in:
Denis Pauk 2018-02-10 22:09:06 +02:00
parent 24b7cb3529
commit b376c7e0d2
3 changed files with 12 additions and 0 deletions

View File

@ -38,6 +38,10 @@ Draw_InitLocal(void)
{
/* load console characters */
draw_chars = R_FindImage("pics/conchars.pcx", it_pic);
if (!draw_chars)
{
ri.Sys_Error(ERR_FATAL, "Couldn't load pics/conchars.pcx");
}
}
/*

View File

@ -38,6 +38,10 @@ GL3_Draw_InitLocal(void)
{
/* load console characters */
draw_chars = GL3_FindImage("pics/conchars.pcx", it_pic);
if (!draw_chars)
{
ri.Sys_Error(ERR_FATAL, "Couldn't load pics/conchars.pcx");
}
// set up attribute layout for 2D textured rendering
glGenVertexArrays(1, &vao2D);

View File

@ -59,6 +59,10 @@ Draw_InitLocal
void Draw_InitLocal (void)
{
draw_chars = RE_Draw_FindPic ("conchars");
if (!draw_chars)
{
ri.Sys_Error(ERR_FATAL, "Couldn't load pics/conchars.pcx");
}
}