ebiten: remove unnecessary casts

This commit is contained in:
Hajime Hoshi 2022-10-03 01:23:44 +09:00
parent b489548963
commit dcc98e78e9

View File

@ -233,7 +233,7 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) {
srcs := [graphics.ShaderImageCount]*ui.Image{img.image} srcs := [graphics.ShaderImageCount]*ui.Image{img.image}
useColorM := !colorm.IsIdentity() useColorM := !colorm.IsIdentity()
shader := builtinShader(builtinshader.Filter(filter), builtinshader.AddressUnsafe, useColorM) shader := builtinShader(filter, builtinshader.AddressUnsafe, useColorM)
var uniforms [][]float32 var uniforms [][]float32
if useColorM { if useColorM {
var body [16]float32 var body [16]float32
@ -443,7 +443,7 @@ func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, o
srcs := [graphics.ShaderImageCount]*ui.Image{img.image} srcs := [graphics.ShaderImageCount]*ui.Image{img.image}
useColorM := !colorm.IsIdentity() useColorM := !colorm.IsIdentity()
shader := builtinShader(builtinshader.Filter(filter), builtinshader.Address(address), useColorM) shader := builtinShader(filter, address, useColorM)
var uniforms [][]float32 var uniforms [][]float32
if useColorM { if useColorM {
var body [16]float32 var body [16]float32