void ogles_uninit(ogles_context_t* c) { ogles_uninit_array(c); ogles_uninit_matrix(c); ogles_uninit_vertex(c); ogles_uninit_light(c); ogles_uninit_texture(c); c->surfaceManager->decStrong(c); c->bufferObjectManager->decStrong(c); ggl_uninit_context(&(c->rasterizer)); free(c->rasterizer.base); }
void ogles_uninit(ogles_context_t* c) { ogles_uninit_array(c); ogles_uninit_matrix(c); ogles_uninit_vertex(c); ogles_uninit_light(c); ogles_uninit_texture(c); c->surfaceManager->decStrong(c); c->bufferObjectManager->decStrong(c); ggl_uninit_context(&(c->rasterizer)); free(c->rasterizer.base); #ifdef LIBAGL_USE_GRALLOC_COPYBITS if (c->copybits.blitEngine != NULL) { copybit_close((struct copybit_device_t*) c->copybits.blitEngine); } #endif // LIBAGL_USE_GRALLOC_COPYBITS }