mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
fixed crash bug when a texture cant be rendered
This commit is contained in:
1 parent
d869445950
commit
15f9713a84
1 file changed
+4
@@ -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