mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
ebiten: remove unnecessary casts
This commit is contained in:
parent
b489548963
commit
dcc98e78e9
4
image.go
4
image.go
@ -233,7 +233,7 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) {
|
||||
srcs := [graphics.ShaderImageCount]*ui.Image{img.image}
|
||||
|
||||
useColorM := !colorm.IsIdentity()
|
||||
shader := builtinShader(builtinshader.Filter(filter), builtinshader.AddressUnsafe, useColorM)
|
||||
shader := builtinShader(filter, builtinshader.AddressUnsafe, useColorM)
|
||||
var uniforms [][]float32
|
||||
if useColorM {
|
||||
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}
|
||||
|
||||
useColorM := !colorm.IsIdentity()
|
||||
shader := builtinShader(builtinshader.Filter(filter), builtinshader.Address(address), useColorM)
|
||||
shader := builtinShader(filter, address, useColorM)
|
||||
var uniforms [][]float32
|
||||
if useColorM {
|
||||
var body [16]float32
|
||||
|
Loading…
Reference in New Issue
Block a user