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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user