aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-08-03 15:31:43 +0200
committerAndre Weissflog <floooh@gmail.com>2025-08-03 15:31:43 +0200
commitfd161fceb8d991c50bbc02af207131b2a196d925 (patch)
tree8638bc29bdbf2258f72320f3dc24c0250699a8ac
parent31b97756ea41e24c0007ea1d066e8fa4d37b8a34 (diff)
sokol_gfx.h mtl: fix unused warning
-rw-r--r--sokol_gfx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 3eba6dcc..089d97eb 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -14994,6 +14994,7 @@ _SOKOL_PRIVATE void _sg_mtl_discard_pipeline(_sg_pipeline_t* pip) {
_SOKOL_PRIVATE sg_resource_state _sg_mtl_create_view(_sg_view_t* view, const sg_view_desc* desc) {
SOKOL_ASSERT(view && desc);
+ _SOKOL_UNUSED(desc);
if ((SG_VIEWTYPE_TEXTURE == view->cmn.type) || (SG_VIEWTYPE_STORAGEIMAGE == view->cmn.type)) {
const _sg_image_view_common_t* cmn = &view->cmn.img;
const _sg_image_t* img = _sg_image_ref_ptr(&cmn->ref);