mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/graphicsdriver/opengl: bug fix: lastBlend was not updated correctly on GLES
This commit is contained in:
parent
15ae074c43
commit
d2a99afa44
@ -108,6 +108,7 @@ func (c *context) blend(blend graphicsdriver.Blend) {
|
|||||||
if c.lastBlend == blend {
|
if c.lastBlend == blend {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
c.lastBlend = blend
|
||||||
c.ctx.BlendFuncSeparate(
|
c.ctx.BlendFuncSeparate(
|
||||||
uint32(convertBlendFactor(blend.BlendFactorSourceRGB)),
|
uint32(convertBlendFactor(blend.BlendFactorSourceRGB)),
|
||||||
uint32(convertBlendFactor(blend.BlendFactorDestinationRGB)),
|
uint32(convertBlendFactor(blend.BlendFactorDestinationRGB)),
|
||||||
|
Loading…
Reference in New Issue
Block a user