clear stencil when bounds change

This commit is contained in:
Thomas Friedel 2019-02-24 11:08:22 +01:00
parent 041cf94c5c
commit 93c75a9b61

View file

@ -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)
}
}