graphics: Forbid using a subimage at DrawTriangles (#727)

This commit is contained in:
Hajime Hoshi 2018-10-29 01:37:57 +09:00
parent 6b02f0ae9e
commit 27ee54b008

View File

@ -494,6 +494,9 @@ func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, o
}
// TODO: Implement this.
if img.isSubImage() {
panic("using a subimage at DrawTriangles is not implemented")
}
if i.isSubimage() {
panic("render to a subimage is not implemented")
}