fixed that restoring after calling clip didn't always restore properly
This commit is contained in:
parent
93d30a1ff7
commit
be6d1db04f
1 changed files with 3 additions and 2 deletions
|
@ -724,9 +724,10 @@ func (cv *Canvas) Restore() {
|
|||
if l <= 0 {
|
||||
return
|
||||
}
|
||||
gli.StencilMask(0x02)
|
||||
gli.Clear(gl_STENCIL_BUFFER_BIT)
|
||||
cv.state.scissor = scissor{}
|
||||
cv.applyScissor()
|
||||
gli.StencilMask(0xFF)
|
||||
gli.Clear(gl_STENCIL_BUFFER_BIT)
|
||||
for _, st := range cv.stateStack {
|
||||
if len(st.clip) > 0 {
|
||||
cv.clip(st.clip)
|
||||
|
|
Loading…
Reference in a new issue