mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-29 10:52:38 +08:00
ebiten: Sparate textures from uniforms at DrawTrianglesWithShader
Updates #1193 Updates #1239
This commit is contained in:
@@ -130,9 +130,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
||||
[]float32{float32(cx), float32(cy)}, // Cursor
|
||||
}
|
||||
if g.idx != 0 {
|
||||
op.Uniforms = append(op.Uniforms,
|
||||
gophersImage, // Image
|
||||
)
|
||||
op.Textures = append(op.Textures, gophersImage)
|
||||
}
|
||||
screen.DrawTrianglesWithShader(vs, is, s, op)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user