forked from enlightenment/efl
Evas GL: Remove useless field
- fbo_attached is not used. - buffers_allocated is just a bool
This commit is contained in:
parent
72a3ec3fa0
commit
e2a6f5129c
|
@ -2088,7 +2088,7 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context *ctx)
|
||||||
{
|
{
|
||||||
if (_evgl_direct_renderable(rsc, sfc))
|
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
|
// Destroy created resources
|
||||||
if (sfc->buffers_allocated)
|
if (sfc->buffers_allocated)
|
||||||
|
|
|
@ -112,13 +112,11 @@ struct _EVGL_Surface
|
||||||
unsigned gles1_indirect : 1;
|
unsigned gles1_indirect : 1;
|
||||||
unsigned xpixmap : 1;
|
unsigned xpixmap : 1;
|
||||||
|
|
||||||
|
// Init Flag
|
||||||
|
unsigned buffers_allocated : 1;
|
||||||
|
|
||||||
int cfg_index;
|
int cfg_index;
|
||||||
|
|
||||||
// Attached Context
|
|
||||||
int fbo_attached;
|
|
||||||
|
|
||||||
// Init Flag
|
|
||||||
int buffers_allocated;
|
|
||||||
|
|
||||||
// Rough estimate of buffer in memory per renderbuffer
|
// Rough estimate of buffer in memory per renderbuffer
|
||||||
// 0. color 1. depth 2. stencil 3. depth_stencil
|
// 0. color 1. depth 2. stencil 3. depth_stencil
|
||||||
|
|
Loading…
Reference in New Issue