graphicscommand: Bug fix: test failures

This commit is contained in:
Hajime Hoshi 2020-05-24 03:04:52 +09:00
parent d94b84b8de
commit 968c0a9b9a

View File

@ -145,7 +145,7 @@ func (i *Image) InternalSize() (int, int) {
//
// src and shader are exclusive and only either is non-nil.
func (i *Image) DrawTriangles(src *Image, vertices []float32, indices []uint16, clr *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address, shader *Shader, uniforms map[int]interface{}) {
if src.screen {
if src != nil && src.screen {
panic("graphicscommand: the screen image cannot be the rendering source")
}