From c1345ade8fa0ddc90b9ac1bd92c153e0f413eb83 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 16 Jun 2014 19:23:08 +0900 Subject: [PATCH] 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 4710676884..35824b4f7d 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!");