aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-10-16 10:48:40 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-16 10:49:34 +0900
commit561481f6ad0cf9c5c12ee5c6091625120ad4da11 (patch)
tree7e57c110fc9a8427ccc6792202110ddebe8bf2d9
parentEvas: Fix image orientation with GL engine (diff)
downloadefl-561481f6ad0cf9c5c12ee5c6091625120ad4da11.tar.gz
Evas GL: SW engine CID fixes
Following previous changes, there was unreachable code. - CID 1327421 - CID 1327420
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 70023787ff..d9b8956c99 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -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;