summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung W. Park <dunamis.park@samsung.com>2013-09-17 17:22:26 +0900
committerSung W. Park <dunamis.park@samsung.com>2013-09-17 17:24:30 +0900
commitb9e3e6be57e178ce83433447bbaf79fbbda0f653 (patch)
tree1dc309710296b2a903fbd36523d040b7626d4460
parent592076e319062a1b8a301f9f3deea45440ae456f (diff)
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.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.c4
1 files 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 5ae7a9e28d..c711a26756 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)
1695 // Destroy created resources 1695 // Destroy created resources
1696 if (sfc->buffers_allocated) 1696 if (sfc->buffers_allocated)
1697 { 1697 {
1698 if (!_surface_buffers_allocate(evgl_engine, sfc, 0, 0, 1)) 1698 if (!_surface_buffers_allocate(eng_data, sfc, 0, 0, 1))
1699 { 1699 {
1700 ERR("Unable to destroy surface buffers!"); 1700 ERR("Unable to destroy surface buffers!");
1701 return 0; 1701 return 0;
@@ -1708,7 +1708,7 @@ evgl_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context *ctx)
1708 // Create internal buffers if not yet created 1708 // Create internal buffers if not yet created
1709 if (!sfc->buffers_allocated) 1709 if (!sfc->buffers_allocated)
1710 { 1710 {
1711 if (!_surface_buffers_allocate(evgl_engine, sfc, sfc->w, sfc->h, 1)) 1711 if (!_surface_buffers_allocate(eng_data, sfc, sfc->w, sfc->h, 1))
1712 { 1712 {
1713 ERR("Unable Create Specificed Surfaces. Unsupported format!"); 1713 ERR("Unable Create Specificed Surfaces. Unsupported format!");
1714 return 0; 1714 return 0;