summaryrefslogtreecommitdiff
path: root/src
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 /src
parentc927f6e4eafbc1eedec4cd512aa16effe4240299 (diff)
Evas GL: SW engine CID fixes
Following previous changes, there was unreachable code. - CID 1327421 - CID 1327420
Diffstat (limited to 'src')
-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 7002378..d9b8956 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)
3093 } 3093 }
3094 3094
3095 // Unset surface/context 3095 // Unset surface/context
3096 if ((!sfc) || (!ctx)) 3096 if ((!sfc) && (!ctx))
3097 { 3097 {
3098 if (ctx) ctx->current_sfc = NULL;
3099 if (sfc) sfc->current_ctx = NULL;
3100 eina_tls_set(gl_current_ctx_key, NULL); 3098 eina_tls_set(gl_current_ctx_key, NULL);
3101 eina_tls_set(gl_current_sfc_key, NULL); 3099 eina_tls_set(gl_current_sfc_key, NULL);
3102 return 1; 3100 return 1;