Ejemplo n.º 1
0
/*****************************************************************************
 * FUNCTION:	fimgDestroyContext
 * SYNOPSIS:	This function destroys a device context
 *****************************************************************************/
void fimgDestroyContext(fimgContext *ctx)
{
	fimgDeviceClose(ctx);
	free(ctx->queueStart);
	free(ctx->vertexData);
	free(ctx);
}
Ejemplo n.º 2
0
/**
 * 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);
}