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;