mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
fixed crash bug when a texture cant be rendered
This commit is contained in:
@@ -594,6 +594,10 @@ wTextureRenderImage(WTexture *texture, int width, int height,
|
|||||||
wwarning(_("could not render texture: %s"), RMessageForError(RErrorCode));
|
wwarning(_("could not render texture: %s"), RMessageForError(RErrorCode));
|
||||||
|
|
||||||
image = RCreateImage(width, height, False);
|
image = RCreateImage(width, height, False);
|
||||||
|
if (image == NULL) {
|
||||||
|
wwarning(_("could not allocate image buffer"));
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
gray.red = 190;
|
gray.red = 190;
|
||||||
gray.green = 190;
|
gray.green = 190;
|
||||||
|
|||||||
Reference in New Issue
Block a user