Fix evas_gl current_context update issue when evas_gl context is deleted.

SVN revision: 75490
This commit is contained in:
Sung Park 2012-08-21 07:42:08 +00:00
parent f4d20be0c2
commit d1eea33285
4 changed files with 11 additions and 0 deletions

View File

@ -971,3 +971,7 @@
* Removed unnessesary lines which causes the gles resource leak and
corruption.
2012-08-21 Sung W. Park (sung_)
* Fix evas_gl current_context update issue when evas_gl context is deleted.

View File

@ -28,6 +28,7 @@ Fixes:
* Handle proxy with the right context.
* Force proxied object to stay active to keep track of change in them.
* Fix evas_gl's internal resource surface bug when evas' window is deleted/recreated.
* Fix evas_gl current_context update issue when evas_gl context is deleted.
Removal:
* Remove EVAS_FRAME_QUEUING, EVAS_SLI, METRIC_CACHE and WORD_CACHE.

View File

@ -3848,6 +3848,9 @@ eng_gl_context_destroy(void *data, void *context)
return 0;
}
if (current_evgl_ctx == ctx)
current_evgl_ctx = NULL;
free(ctx);
context = NULL;

View File

@ -2319,6 +2319,9 @@ eng_gl_context_destroy(void *data, void *context)
return 0;
}
if (current_evgl_ctx == ctx)
current_evgl_ctx = NULL;
free(ctx);
context = NULL;