Fix bitwise logical operation in Metal backend

Pull Request: blender/blender#107084
This commit is contained in:
2023-04-18 11:26:33 +02:00
committed by Gitea
parent 187998970a
commit fd10ecaeaf

View File

@@ -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) {