diff --git a/src/igl/metal/Texture.h b/src/igl/metal/Texture.h index 94152caeeb..3efc7903ea 100644 --- a/src/igl/metal/Texture.h +++ b/src/igl/metal/Texture.h @@ -51,10 +51,10 @@ class Texture final : public ITexture { bool isRequiredGenerateMipmap() const override; uint64_t getTextureId() const override; - IGL_INLINE id get() const { + IGL_INLINE id _Nullable get() const { return (drawable_) ? drawable_.texture : value_; } - IGL_INLINE id getDrawable() const { + IGL_INLINE id _Nullable getDrawable() const { return drawable_; }