mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
graphics: Bug fix: don't apply color matrix when creating mipmap images
TODO: Add tests. Fixes #710
This commit is contained in:
parent
4813650735
commit
5e09da1298
2
image.go
2
image.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user