add color blending

This commit is contained in:
faiface 2016-12-03 19:23:18 +01:00
parent 42d573372e
commit ffc9a1a0ff
1 changed files with 2 additions and 0 deletions

View File

@ -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.