diff --git a/pixelgl/thread.go b/pixelgl/thread.go index 3f5d1dc20ba82329bb04e8c227cf19bcdc39fb1f..330309a8391d52f2ef41889e2d823f159e4c3e05 100644 --- a/pixelgl/thread.go +++ b/pixelgl/thread.go @@ -51,6 +51,8 @@ func Init() { if err != nil { panic(err) } + gl.Enable(gl.BLEND) + gl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA) } // DoNoBlock executes a function inside the main OpenGL thread.