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.
This commit is contained in:
Carsten Haitzler 2014-06-16 19:23:08 +09:00
parent 3f20c958b2
commit c1345ade8f
1 changed files with 2 additions and 1 deletions

View File

@ -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!");