mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
fix an assert crash.
This commit is contained in:
1 parent
bb75616aad
commit
c2cbce6d84
1 file changed
+3
-3
@@ -582,10 +582,10 @@ renderTexture(WMScreen *scr, proplist_t texture, int width, int height,
|
||||
|
||||
str = PLGetString(PLGetArrayElement(texture, 1));
|
||||
|
||||
path = wfindfileinarray(GetObjectForKey("PixmapPath"), str);
|
||||
timage = RLoadImage(rc, path, 0);
|
||||
if (path = wfindfileinarray(GetObjectForKey("PixmapPath"), str))
|
||||
timage = RLoadImage(rc, path, 0);
|
||||
|
||||
if (!timage) {
|
||||
if (!path || !timage) {
|
||||
wwarning("could not load file '%s': %s", path,
|
||||
RMessageForError(RErrorCode));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user