mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/grphicsdriver/opengl: bug fix: wrong consntant was used for blend operations
Updates #2382
This commit is contained in:
parent
b79495761e
commit
06c53c1445
@ -36,7 +36,7 @@ const (
|
||||
type blendOperation int
|
||||
|
||||
const (
|
||||
glAdd blendOperation = 0x104
|
||||
glFuncAdd blendOperation = 0x8006
|
||||
)
|
||||
|
||||
func convertBlendFactor(f graphicsdriver.BlendFactor) blendFactor {
|
||||
@ -63,7 +63,7 @@ func convertBlendFactor(f graphicsdriver.BlendFactor) blendFactor {
|
||||
func convertBlendOperation(o graphicsdriver.BlendOperation) blendOperation {
|
||||
switch o {
|
||||
case graphicsdriver.BlendOperationAdd:
|
||||
return glAdd
|
||||
return glFuncAdd
|
||||
default:
|
||||
panic(fmt.Sprintf("opengl: invalid blend operation %d", o))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user