From e2a6f5129c496068353bbfe3ff76d73435662847 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 27 Nov 2014 14:45:34 +0900 Subject: [PATCH] Evas GL: Remove useless field - fbo_attached is not used. - buffers_allocated is just a bool --- src/modules/evas/engines/gl_common/evas_gl_core.c | 2 +- src/modules/evas/engines/gl_common/evas_gl_core_private.h | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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 ee4b09f62b..1878f5fa28 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_core.c +++ b/src/modules/evas/engines/gl_common/evas_gl_core.c @@ -2088,7 +2088,7 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context *ctx) { if (_evgl_direct_renderable(rsc, sfc)) { - if (dbg) DBG("sfc %p is direct renderable (has buffers: %d).", sfc, sfc->buffers_allocated); + if (dbg) DBG("sfc %p is direct renderable (has buffers: %d).", sfc, (int) sfc->buffers_allocated); // Destroy created resources if (sfc->buffers_allocated) diff --git a/src/modules/evas/engines/gl_common/evas_gl_core_private.h b/src/modules/evas/engines/gl_common/evas_gl_core_private.h index 4c22dd59e7..91242d87c2 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_core_private.h +++ b/src/modules/evas/engines/gl_common/evas_gl_core_private.h @@ -112,13 +112,11 @@ struct _EVGL_Surface unsigned gles1_indirect : 1; unsigned xpixmap : 1; + // Init Flag + unsigned buffers_allocated : 1; + int cfg_index; - // Attached Context - int fbo_attached; - - // Init Flag - int buffers_allocated; // Rough estimate of buffer in memory per renderbuffer // 0. color 1. depth 2. stencil 3. depth_stencil