fix window viewport
This commit is contained in:
parent
c1e2968d2a
commit
26c44125cf
|
@ -11,3 +11,10 @@ func Clear(r, g, b, a float32) {
|
|||
gl.Clear(gl.COLOR_BUFFER_BIT)
|
||||
})
|
||||
}
|
||||
|
||||
// SetViewport sets the OpenGL viewport.
|
||||
func SetViewport(x, y, w, h int32) {
|
||||
DoNoBlock(func() {
|
||||
gl.Viewport(x, y, w, h)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue