clear stencil when bounds change
This commit is contained in:
parent
041cf94c5c
commit
93c75a9b61
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ func (b *GoGLBackend) SetBounds(x, y, w, h int) {
|
|||
b.fw, b.fh = float64(w), float64(h)
|
||||
if b == activeContext {
|
||||
gl.Viewport(0, 0, int32(b.w), int32(b.h))
|
||||
gl.Clear(gl.STENCIL_BUFFER_BIT)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue