Cleanup: Clang tidy else after return

This commit is contained in:
Hans Goudey 2020-11-17 12:58:26 -05:00
parent 7d23dd4430
commit da6c968a95
1 changed files with 2 additions and 3 deletions

View File

@ -66,9 +66,8 @@ bool BKE_image_has_gpu_texture_premultiplied_alpha(Image *image, ImBuf *ibuf)
if (ibuf->rect_float) {
return image ? (image->alpha_mode != IMA_ALPHA_STRAIGHT) : false;
}
else {
return image ? (image->alpha_mode == IMA_ALPHA_PREMUL) : true;
}
return image ? (image->alpha_mode == IMA_ALPHA_PREMUL) : true;
}
return false;
}