Evas GL: SW engine CID fixes
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 16 Oct 2015 01:48:40 +0000 (10:48 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 16 Oct 2015 01:49:34 +0000 (10:49 +0900)
Following previous changes, there was unreachable code.
- CID 1327421
- CID 1327420

src/modules/evas/engines/software_generic/evas_engine.c

index 7002378..d9b8956 100644 (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;