ebiten: fixed a wrong function name mentioned in panic (#1953)

This commit is contained in:
Bertrand Jung 2022-01-12 19:33:59 +01:00 committed by GitHub
parent bf48a0b11a
commit 8a2965ba4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,7 +466,7 @@ func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader
continue continue
} }
if img.isDisposed() { if img.isDisposed() {
panic("ebiten: the given image to DrawRectShader must not be disposed") panic("ebiten: the given image to DrawTrianglesShader must not be disposed")
} }
if i == 0 { if i == 0 {
imgw, imgh = img.Size() imgw, imgh = img.Size()