From bef2eab4ef394b9250aac1bd5daf31d17a935b3e Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sun, 14 Apr 2024 23:49:35 +0200 Subject: [PATCH] GRMtlTextureInfo should have readonly getters (#2833) --- binding/SkiaSharp/GRDefinitions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/SkiaSharp/GRDefinitions.cs b/binding/SkiaSharp/GRDefinitions.cs index 304f479386..ed6c3facb0 100644 --- a/binding/SkiaSharp/GRDefinitions.cs +++ b/binding/SkiaSharp/GRDefinitions.cs @@ -84,7 +84,7 @@ public GRMtlTextureInfo (IntPtr textureHandle) } public IntPtr TextureHandle { - get => _textureHandle; + readonly get => _textureHandle; set { _textureHandle = value; #if __IOS__ || __MACOS__ @@ -101,7 +101,7 @@ public GRMtlTextureInfo (Metal.IMTLTexture texture) } public Metal.IMTLTexture Texture { - get => _texture; + readonly get => _texture; set { _texture = value; _textureHandle = _texture.Handle;