change all float64 to float32 in pixelgl

This commit is contained in:
faiface 2016-12-01 17:48:52 +01:00
parent 6962ba1bda
commit 73db1b4d5b
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ import "github.com/go-gl/gl/v3.3-core/gl"
// This file defines functions that can operate without a parent Doer.
// Clear clears the current context..
func Clear(r, g, b, a float64) {
func Clear(r, g, b, a float32) {
DoNoBlock(func() {
gl.ClearColor(float32(r), float32(g), float32(b), float32(a))
gl.ClearColor(r, g, b, a)
gl.Clear(gl.COLOR_BUFFER_BIT)
})
}