graphics: Bug fix: don't apply color matrix when creating mipmap images

TODO: Add tests.

Fixes #710
This commit is contained in:
Hajime Hoshi 2018-10-11 02:34:05 +09:00
parent 4813650735
commit 5e09da1298

View File

@ -310,7 +310,7 @@ func (i *Image) drawImage(img *Image, options *DrawImageOptions) {
}
vs := src.QuadVertices(0, 0, w, h, 0.5, 0, 0, 0.5, 0, 0, 1, 1, 1, 1)
is := graphicsutil.QuadIndices()
s.DrawImage(src, vs, is, options.ColorM.impl, opengl.CompositeModeCopy, graphics.FilterLinear)
s.DrawImage(src, vs, is, nil, opengl.CompositeModeCopy, graphics.FilterLinear)
img.shareableImages = append(img.shareableImages, s)
w = w2
h = h2