X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=d0b3eda72922740d8893b232f7334d1524a382c6;hb=a79a38d1732331e3920ee06fde662fa0f4bc1405;hp=c45723c50491daefa76aff1fcd65d9e85a509fd5;hpb=bfe8eb2a44461434b4572e4e938b3ab4fa657644;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) {