[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/efl] master 01/01: EvasGL: Fixed a bug where the wrong data variable to buffer alloc func.



sung pushed a commit to branch master.

commit b9e3e6be57e178ce83433447bbaf79fbbda0f653
Author: Sung W. Park <dunamis.park@samsung.com>
Date:   Tue Sep 17 17:22:26 2013 +0900

    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.
---
 src/modules/evas/engines/gl_common/evas_gl_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 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 5ae7a9e..c711a26 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -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;

--