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 {
|
if l <= 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
gli.StencilMask(0x02)
|
cv.state.scissor = scissor{}
|
||||||
gli.Clear(gl_STENCIL_BUFFER_BIT)
|
cv.applyScissor()
|
||||||
gli.StencilMask(0xFF)
|
gli.StencilMask(0xFF)
|
||||||
|
gli.Clear(gl_STENCIL_BUFFER_BIT)
|
||||||
for _, st := range cv.stateStack {
|
for _, st := range cv.stateStack {
|
||||||
if len(st.clip) > 0 {
|
if len(st.clip) > 0 {
|
||||||
cv.clip(st.clip)
|
cv.clip(st.clip)
|
||||||
|
|
Loading…
Reference in a new issue