mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
Fixed magic number
This commit is contained in:
parent
55f1a5d32e
commit
c9eb30d66f
@ -23,6 +23,7 @@ const (
|
||||
BLEND = 0x0BE2
|
||||
CLAMP_TO_EDGE = 0x812F
|
||||
COLOR_ATTACHMENT0 = 0x8CE0
|
||||
COLOR_BUFFER_BIT = 0x4000
|
||||
COMPILE_STATUS = 0x8B81
|
||||
DECR_WRAP = 0x8508
|
||||
DEPTH24_STENCIL8 = 0x88F0
|
||||
|
@ -242,7 +242,7 @@ func (g *Graphics) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphicsdr
|
||||
|
||||
// Reset color attachments
|
||||
if s := g.context.ctx.CheckFramebufferStatus(gl.FRAMEBUFFER); s == gl.FRAMEBUFFER_COMPLETE {
|
||||
g.context.ctx.Clear(16384 | gl.STENCIL_BUFFER_BIT)
|
||||
g.context.ctx.Clear(gl.COLOR_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)
|
||||
}
|
||||
for i, dst := range dsts {
|
||||
if dst == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user