mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +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)
|
vs := src.QuadVertices(0, 0, w, h, 0.5, 0, 0, 0.5, 0, 0, 1, 1, 1, 1)
|
||||||
is := graphicsutil.QuadIndices()
|
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)
|
img.shareableImages = append(img.shareableImages, s)
|
||||||
w = w2
|
w = w2
|
||||||
h = h2
|
h = h2
|
||||||
|
Loading…
Reference in New Issue
Block a user