jpeg pushed a commit to branch master.

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

commit e2a6f5129c496068353bbfe3ff76d73435662847
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Nov 27 14:45:34 2014 +0900

    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 ee4b09f..1878f5f 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 4c22dd5..91242d8 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;
 
-   int     cfg_index;
+   // Init Flag
+   unsigned buffers_allocated : 1;
 
-   // Attached Context
-   int     fbo_attached;
+   int     cfg_index;
 
-   // Init Flag
-   int     buffers_allocated;
 
    // Rough estimate of buffer in memory per renderbuffer
    // 0. color 1. depth 2. stencil 3. depth_stencil

-- 


Reply via email to