/***************************************************************************** * FUNCTION: fimgDestroyContext * SYNOPSIS: This function destroys a device context *****************************************************************************/ void fimgDestroyContext(fimgContext *ctx) { fimgDeviceClose(ctx); free(ctx->queueStart); free(ctx->vertexData); free(ctx); }
/** * Destroys a hardware context. * @param ctx Hardware context. */ void fimgDestroyContext(fimgContext *ctx) { fimgDeviceClose(ctx); free(ctx->queueStart); free(ctx->vertexData); #ifdef FIMG_FIXED_PIPELINE free(ctx->compat.vshaderBuf); free(ctx->compat.pshaderBuf); #endif free(ctx); }