Skip to content

Commit c730f6c

Browse files
authored
Update readme.md
1 parent e91e943 commit c730f6c

File tree

1 file changed

+2
-1
lines changed
  • examples/2019-09-08-SkiaSharp-openGL

1 file changed

+2
-1
lines changed

examples/2019-09-08-SkiaSharp-openGL/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ private void RenderWithOpenGL(object sender, PaintEventArgs e)
2828
int height = sctl.Height;
2929

3030
// setup the Skia surface using OpenGL
31+
SKColorType colorType = SKColorType.Rgba8888;
3132
GRContext contextOpenGL = GRContext.Create(GRBackend.OpenGL, GRGlInterface.CreateNativeGlInterface());
3233
GL.GetInteger(GetPName.FramebufferBinding, out var framebuffer);
3334
GRGlFramebufferInfo glInfo = new GRGlFramebufferInfo((uint)framebuffer, colorType.ToGlSizedFormat());
@@ -52,4 +53,4 @@ private void RenderWithOpenGL(object sender, PaintEventArgs e)
5253
contextOpenGL?.Dispose();
5354
surface?.Dispose();
5455
}
55-
```
56+
```

0 commit comments

Comments
 (0)