X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=d0b3eda72922740d8893b232f7334d1524a382c6;hb=1f0538d4e71f928ed4163cd5d39cba2d305cf685;hp=c45723c50491daefa76aff1fcd65d9e85a509fd5;hpb=68defb2401b8a38e48519d83b34a3f2caae8f47a;p=xboard.git diff --git a/draw.c b/draw.c index c45723c..d0b3eda 100644 --- a/draw.c +++ b/draw.c @@ -241,6 +241,7 @@ CreatePNGBoard (char *s, int kind) float w, h; static float n[2] = { 1., 1. }; if(!appData.useBitmaps || s == NULL || *s == 0 || *s == '*') { useTexture &= ~(kind+1); return; } + textureW[kind] = 0; // prevents bitmap from being used if not succesfully loaded if(strstr(s, ".png")) { cairo_surface_t *img = cairo_image_surface_create_from_png (s); if(img) {