raster pushed a commit to branch master.

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

commit c1345ade8fa0ddc90b9ac1bd92c153e0f413eb83
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Jun 16 19:23:08 2014 +0900

    partial fix for T518 - fix blank display on 2+ windows with gl
    
    this fixes @draisch's report of blankness, but doesn't fix the
    garbage. it's something to do with the always render move in elm gl -
    it just doesn't seem to be rendering before evas renders, or if it is,
    it's failing to work/produce content.
---
 src/modules/evas/engines/gl_common/evas_gl_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c 
b/src/modules/evas/engines/gl_common/evas_gl_core.c
index 4710676..35824b4 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -1794,8 +1794,9 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, 
EVGL_Context *ctx)
    else
      {
         // Attach fbo and the buffers
-        if (ctx->current_sfc != sfc)
+        if ((ctx->current_sfc != sfc) || (ctx != sfc->current_ctx))
           {
+             sfc->current_ctx = ctx;
              if ((evgl_engine->direct_mem_opt) && 
(evgl_engine->direct_override))
                {
                   DBG("Not creating fallback surfaces even though it should. 
Use at OWN discretion!");

-- 


Reply via email to