fixed crash bug when a texture cant be rendered

This commit is contained in:
kojima committed 2000-06-04 02:09:10 +00:00
1 parent d869445950
commit 15f9713a84
1 file changed
+4
+4
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;