From 25d56b5c873dbba5e9c7a75b72305ff81c309914 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sat, 14 Jan 2017 22:38:57 -0500 Subject: [PATCH] Android also requires that the stencil buffer be cleared --- .../SkiaSharp.Views.Android/SKGLSurfaceViewRenderer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKGLSurfaceViewRenderer.cs b/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKGLSurfaceViewRenderer.cs index f6a7aa74bf..6254a13892 100644 --- a/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKGLSurfaceViewRenderer.cs +++ b/source/SkiaSharp.Views/SkiaSharp.Views.Android/SKGLSurfaceViewRenderer.cs @@ -17,6 +17,8 @@ public abstract class SKGLSurfaceViewRenderer : Java.Lang.Object, GLSurfaceView. public void OnDrawFrame(IGL10 gl) { + GLES10.GlClear(GLES10.GlStencilBufferBit); + // create the surface using (var surface = SKSurface.Create(context, renderTarget)) {