forked from joejulian/gio
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bfa6bc1c2 |
@@ -115,6 +115,9 @@ func (c *context) Unlock() {
|
||||
}
|
||||
|
||||
func (c *context) Refresh() error {
|
||||
if C.gio_makeCurrent(c.ctx) == 0 {
|
||||
return errors.New("[EAGLContext setCurrentContext] failed")
|
||||
}
|
||||
if !c.init {
|
||||
c.init = true
|
||||
c.frameBuffer = c.c.CreateFramebuffer()
|
||||
|
||||
Reference in New Issue
Block a user