Evas GL: Remove useless field

- fbo_attached is not used.
- buffers_allocated is just a bool
This commit is contained in:
Jean-Philippe Andre 2014-11-27 14:45:34 +09:00
parent 72a3ec3fa0
commit e2a6f5129c
2 changed files with 4 additions and 6 deletions

View 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)

View File

@ -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