Skip to content

Commit 8afcbc4

Browse files
spouliotmattleibow
andauthored
Add Metal API for GRBackendRenderTarget to all platforms (#3070)
Co-authored-by: Matthew Leibowitz <[email protected]>
1 parent 32fbf8d commit 8afcbc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binding/SkiaSharp/GRBackendRenderTarget.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public GRBackendRenderTarget (int width, int height, int sampleCount, GRMtlTextu
3838
{
3939
}
4040

41+
#endif
42+
4143
public GRBackendRenderTarget (int width, int height, GRMtlTextureInfo mtlInfo)
4244
: this (IntPtr.Zero, true)
4345
{
@@ -49,8 +51,6 @@ public GRBackendRenderTarget (int width, int height, GRMtlTextureInfo mtlInfo)
4951
}
5052
}
5153

52-
#endif
53-
5454
private void CreateGl (int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
5555
{
5656
Handle = SkiaApi.gr_backendrendertarget_new_gl (width, height, sampleCount, stencilBits, &glInfo);

0 commit comments

Comments
 (0)