|
|
|
@ -89,10 +89,10 @@ namespace Avalonia.Skia |
|
|
|
throw new OpenGlException("Unable to create FBO with stencil"); |
|
|
|
} |
|
|
|
|
|
|
|
var target = new GRBackendRenderTarget(pixelSize.Width, pixelSize.Height, 0, 8, |
|
|
|
using var target = new GRBackendRenderTarget(pixelSize.Width, pixelSize.Height, 0, 8, |
|
|
|
new GRGlFramebufferInfo((uint)_fbo, SKColorType.Rgba8888.ToGlSizedFormat())); |
|
|
|
_surface = SKSurface.Create(_grContext, target, |
|
|
|
surfaceOrigin, SKColorType.Rgba8888, new SKSurfaceProperties(SKPixelGeometry.RgbHorizontal)); |
|
|
|
using var properties = new SKSurfaceProperties(SKPixelGeometry.RgbHorizontal); |
|
|
|
_surface = SKSurface.Create(_grContext, target, surfaceOrigin, SKColorType.Rgba8888, properties); |
|
|
|
CanBlit = gl.IsBlitFramebufferAvailable; |
|
|
|
} |
|
|
|
|
|
|
|
|