Evas GL: SW engine CID fixes

Following previous changes, there was unreachable code.
- CID 1327421
- CID 1327420
This commit is contained in:
Jean-Philippe Andre 2015-10-16 10:48:40 +09:00
parent c927f6e4ea
commit 561481f6ad
1 changed files with 1 additions and 3 deletions

View File

@ -3093,10 +3093,8 @@ eng_gl_make_current(void *data EINA_UNUSED, void *surface, void *context)
}
// Unset surface/context
if ((!sfc) || (!ctx))
if ((!sfc) && (!ctx))
{
if (ctx) ctx->current_sfc = NULL;
if (sfc) sfc->current_ctx = NULL;
eina_tls_set(gl_current_ctx_key, NULL);
eina_tls_set(gl_current_sfc_key, NULL);
return 1;