EvasGL: Fixed a bug where the wrong data variable to buffer alloc func.

It's an optional feature so it's not automatically turned on but
would have caused a segfault somewhere.  Somehow slipped notice
but fixed now.
This commit is contained in:
Sung W. Park 2013-09-17 17:22:26 +09:00
parent 592076e319
commit b9e3e6be57
1 changed files with 2 additions and 2 deletions

View File

@ -1695,7 +1695,7 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context *ctx)
// Destroy created resources
if (sfc->buffers_allocated)
{
if (!_surface_buffers_allocate(evgl_engine, sfc, 0, 0, 1))
if (!_surface_buffers_allocate(eng_data, sfc, 0, 0, 1))
{
ERR("Unable to destroy surface buffers!");
return 0;
@ -1708,7 +1708,7 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context *ctx)
// Create internal buffers if not yet created
if (!sfc->buffers_allocated)
{
if (!_surface_buffers_allocate(evgl_engine, sfc, sfc->w, sfc->h, 1))
if (!_surface_buffers_allocate(eng_data, sfc, sfc->w, sfc->h, 1))
{
ERR("Unable Create Specificed Surfaces. Unsupported format!");
return 0;