Mercurial > MadButterfly
changeset 591:71df2896877c openvg
build graph_engine_openvg.c in makefile
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 30 Jun 2010 19:45:20 +0800 |
parents | b714f0c9992e |
children | de9d210e9c38 |
files | src/Makefile.am src/graph_engine_openvg.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Makefile.am Wed Jun 30 19:30:32 2010 +0800 +++ b/src/Makefile.am Wed Jun 30 19:45:20 2010 +0800 @@ -47,6 +47,10 @@ libmbfly_la_SOURCES += graph_engine_skia.cpp endif +if OPENVG_GRAPH_ENGINE +libmbfly_la_SOURCES += graph_engine_openvg.c +endif + X_main_SOURCES = X_main.c X_main_LDADD = $(top_builddir)/src/libmbfly.la X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include
--- a/src/graph_engine_openvg.c Wed Jun 30 19:30:32 2010 +0800 +++ b/src/graph_engine_openvg.c Wed Jun 30 19:45:20 2010 +0800 @@ -221,7 +221,7 @@ mbe_surface = (mbe_surface_t *)malloc(sizeof(mbe_surface_t)); if(mbe_surface == NULL) { - eglDestroySurface(surface); + eglDestroySurface(display, surface); return NULL; } mbe_surface->surface = surface; @@ -274,6 +274,6 @@ vgDestroyPath(canvas->path); eglDestroyContext(display, canvas->ctx); - canvas->tgt->asso_mbe = NULL; - free(ctx); + canvas->tgt->asso_mbe = NULL; /* remove association */ + free(canvas); }