From 134fe2bf7bc0b80253bfb4dcec837b03d7b71ba5 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sun, 9 Apr 2017 23:16:34 +0200
Subject: [PATCH] use glhf.BlendFunc

---
 pixelgl/canvas.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pixelgl/canvas.go b/pixelgl/canvas.go
index 53b2b0e..758a5b5 100644
--- a/pixelgl/canvas.go
+++ b/pixelgl/canvas.go
@@ -188,6 +188,7 @@ func (ct *canvasTriangles) draw(tex *glhf.Texture, bounds pixel.Rect) {
 
 	mainthread.CallNonBlock(func() {
 		ct.dst.setGlhfBounds()
+		glhf.BlendFunc(glhf.One, glhf.OneMinusSrcAlpha)
 
 		frame := ct.dst.gf.Frame()
 		shader := ct.dst.shader
-- 
GitLab