diff --git a/libs/video/renderer/gl/gl_draw.c b/libs/video/renderer/gl/gl_draw.c index 7b79dfc13..a6836c4aa 100644 --- a/libs/video/renderer/gl/gl_draw.c +++ b/libs/video/renderer/gl/gl_draw.c @@ -885,6 +885,9 @@ gl_Draw_ConsoleBackground (int lines, byte alpha) void gl_Draw_TileClear (int x, int y, int w, int h) { + if (!draw_backtile) { + return; + } glpic_t *gl; qfglColor3ubv (color_0_8); gl = (glpic_t *) draw_backtile->data; diff --git a/libs/video/renderer/glsl/glsl_draw.c b/libs/video/renderer/glsl/glsl_draw.c index c58352a03..33220a559 100644 --- a/libs/video/renderer/glsl/glsl_draw.c +++ b/libs/video/renderer/glsl/glsl_draw.c @@ -440,6 +440,9 @@ glsl_Draw_Init (void) white_pic = pic_data ("white_block", 8, 8, white_block); backtile_pic = glsl_Draw_PicFromWad ("backtile"); + if (!backtile_pic) { + backtile_pic = white_pic; + } //FIXME gl = (glpic_t *) backtile_pic->data; //FIXME qfeglBindTexture (GL_TEXTURE_2D, gl->texnum); //FIXME qfeglTexParameterf (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);