app/internal/wm: [iOS] don't destroy context when MakeCurrent fails

The caller should ensure the proper destruction.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-05-14 16:22:56 +02:00
parent d6859744ba
commit fcca1c11ee
-2
View File
@@ -93,8 +93,6 @@ func (c *context) Unlock() {}
func (c *context) MakeCurrent() error {
if C.gio_makeCurrent(c.ctx) == 0 {
C.CFRelease(c.ctx)
c.ctx = 0
return errors.New("[EAGLContext setCurrentContext] failed")
}
if !c.init {