1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

fixed crash bug when a texture cant be rendered

This commit is contained in:
kojima
2000-06-04 02:09:10 +00:00
parent d869445950
commit 15f9713a84

View File

@@ -594,6 +594,10 @@ wTextureRenderImage(WTexture *texture, int width, int height,
wwarning(_("could not render texture: %s"), RMessageForError(RErrorCode));
image = RCreateImage(width, height, False);
if (image == NULL) {
wwarning(_("could not allocate image buffer"));
return NULL;
}
gray.red = 190;
gray.green = 190;