Evas GL: Remove useless field
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 27 Nov 2014 05:45:34 +0000 (14:45 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 27 Nov 2014 07:46:31 +0000 (16:46 +0900)
- fbo_attached is not used.
- buffers_allocated is just a bool

src/modules/evas/engines/gl_common/evas_gl_core.c
src/modules/evas/engines/gl_common/evas_gl_core_private.h

index ee4b09f..1878f5f 100644 (file)
@@ -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)
index 4c22dd5..91242d8 100644 (file)
@@ -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