Fix unused variable in release build in Metal backend

This commit is contained in:
Sergey Sharybin
2023-04-18 11:26:17 +02:00
committed by Sergey Sharybin
parent c872b6b930
commit 187998970a

View File

@@ -1669,6 +1669,7 @@ MTLRenderPassDescriptor *MTLFrameBuffer::bake_render_pass_descriptor(bool load_c
}
}
BLI_assert(colour_attachments == colour_attachment_count_);
UNUSED_VARS_NDEBUG(colour_attachments);
/* Depth attachment. */
if (mtl_depth_attachment_.used) {