internal/graphicsdriver/opengl: bug fix: lastBlend was not updated correctly on GLES

This commit is contained in:
Hajime Hoshi 2022-10-17 16:05:09 +09:00
parent 15ae074c43
commit d2a99afa44

View File

@ -108,6 +108,7 @@ func (c *context) blend(blend graphicsdriver.Blend) {
if c.lastBlend == blend {
return
}
c.lastBlend = blend
c.ctx.BlendFuncSeparate(
uint32(convertBlendFactor(blend.BlendFactorSourceRGB)),
uint32(convertBlendFactor(blend.BlendFactorDestinationRGB)),