diff options
Diffstat (limited to 'source/blender/imbuf/intern/allocimbuf.c')
-rw-r--r-- | source/blender/imbuf/intern/allocimbuf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c index 4b3858e6d5a..8dfb3ada7d6 100644 --- a/source/blender/imbuf/intern/allocimbuf.c +++ b/source/blender/imbuf/intern/allocimbuf.c @@ -423,9 +423,8 @@ bool imb_addrectImBuf(ImBuf *ibuf) if (ibuf->planes > 32) { return (addzbufImBuf(ibuf)); } - else { - return true; - } + + return true; } return false; @@ -489,7 +488,7 @@ ImBuf *IMB_allocImBuf(unsigned int x, unsigned int y, uchar planes, unsigned int } } - return (ibuf); + return ibuf; } bool IMB_initImBuf( @@ -624,7 +623,7 @@ ImBuf *IMB_dupImBuf(const ImBuf *ibuf1) *ibuf2 = tbuf; - return (ibuf2); + return ibuf2; } size_t IMB_get_size_in_memory(ImBuf *ibuf) |