Mercurial > MadButterfly
comparison src/graph_engine_openvg.c @ 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 |
comparison
equal
deleted
inserted
replaced
590:b714f0c9992e | 591:71df2896877c |
---|---|
219 if(surface == EGL_NO_SURFACE) | 219 if(surface == EGL_NO_SURFACE) |
220 return NULL; | 220 return NULL; |
221 | 221 |
222 mbe_surface = (mbe_surface_t *)malloc(sizeof(mbe_surface_t)); | 222 mbe_surface = (mbe_surface_t *)malloc(sizeof(mbe_surface_t)); |
223 if(mbe_surface == NULL) { | 223 if(mbe_surface == NULL) { |
224 eglDestroySurface(surface); | 224 eglDestroySurface(display, surface); |
225 return NULL; | 225 return NULL; |
226 } | 226 } |
227 mbe_surface->surface = surface; | 227 mbe_surface->surface = surface; |
228 mbe_surface->asso_mbe = NULL; | 228 mbe_surface->asso_mbe = NULL; |
229 | 229 |
272 | 272 |
273 display = _VG_DISPLAY(); | 273 display = _VG_DISPLAY(); |
274 | 274 |
275 vgDestroyPath(canvas->path); | 275 vgDestroyPath(canvas->path); |
276 eglDestroyContext(display, canvas->ctx); | 276 eglDestroyContext(display, canvas->ctx); |
277 canvas->tgt->asso_mbe = NULL; | 277 canvas->tgt->asso_mbe = NULL; /* remove association */ |
278 free(ctx); | 278 free(canvas); |
279 } | 279 } |