jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=561481f6ad0cf9c5c12ee5c6091625120ad4da11

commit 561481f6ad0cf9c5c12ee5c6091625120ad4da11
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Oct 16 10:48:40 2015 +0900

    Evas GL: SW engine CID fixes
    
    Following previous changes, there was unreachable code.
    - CID 1327421
    - CID 1327420
---
 src/modules/evas/engines/software_generic/evas_engine.c | 4 +---
 1 file changed, 1 insertion(+), 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)
      }
 
    // 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;

-- 


Reply via email to