Fix bitwise logical operation in Metal backend
Pull Request: https://projects.blender.org/blender/blender/pulls/107084
This commit is contained in:
@@ -148,8 +148,8 @@ bool MTLFrameBuffer::check(char err_out[256])
|
||||
this->ensure_attachments_and_viewport();
|
||||
|
||||
/* Ensure there is at least one attachment. */
|
||||
bool valid = (this->get_attachment_count() > 0 ||
|
||||
this->has_depth_attachment() | this->has_stencil_attachment());
|
||||
bool valid = (this->get_attachment_count() > 0 || this->has_depth_attachment() ||
|
||||
this->has_stencil_attachment());
|
||||
if (!valid) {
|
||||
const char *format = "Framebuffer %s does not have any attachments.\n";
|
||||
if (err_out) {
|
||||
|
||||
Reference in New Issue
Block a user