(render_chain_xdk) Use wrappers for freeing textures and vertex
buffers