forked from enlightenment/efl
Evas GL: SW engine CID fixes
Following previous changes, there was unreachable code. - CID 1327421 - CID 1327420
This commit is contained in:
parent
c927f6e4ea
commit
561481f6ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue