This fixes the incorrect operations when evas gl is re-initialized in one same process
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@74339
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
2012-07-24 Ingvaldur Sigurjonsson
* Fix typoe in docs
+
+2012-07-24 Hermet (ChunEon Park)
+
+ * Fixed evas_gl resource list have cleared properly when it is released
+ so it would be no problem when it is reinitialized in one same process.
eglDestroyContext(re->win->egl_disp, rsc->context);
free(rsc);
}
- eina_list_free(resource_list);
- LKU(resource_lock);
-
- // Destroy TLS
- eina_tls_free(resource_key);
#else
// GLX
// Delete the Resources
free(rsc);
}
}
+#endif
eina_list_free(resource_list);
+ resource_list = NULL;
LKU(resource_lock);
// Destroy TLS
eina_tls_free(resource_key);
-#endif
// Free the extension strings
if (_ext_initted)
{
- if (_gl_ext_string)
+ if (_gl_ext_string)
free(_gl_ext_string);
- if (_evasgl_ext_string)
+ if (_evasgl_ext_string)
free(_evasgl_ext_string);
_gl_ext_string = NULL;