mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-13 22:47:26 +01:00
graphics: Forbid using a subimage at DrawTriangles (#727)
This commit is contained in:
parent
6b02f0ae9e
commit
27ee54b008
3
image.go
3
image.go
@ -494,6 +494,9 @@ func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, o
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement this.
|
// TODO: Implement this.
|
||||||
|
if img.isSubImage() {
|
||||||
|
panic("using a subimage at DrawTriangles is not implemented")
|
||||||
|
}
|
||||||
if i.isSubimage() {
|
if i.isSubimage() {
|
||||||
panic("render to a subimage is not implemented")
|
panic("render to a subimage is not implemented")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user