void rnContextDelete(RnContext ctx) { if (ctx == NULL) return; PF_ASSERT(ctx == renderer); if (ctx->refDec()) { Lock<MutexSys> lock(rendererMutex); PF_DELETE(renderer); renderer = NULL; } }
Renderer::~Renderer(void) { this->defaultTex = NULL; PF_DELETE(this->streamer); PF_DELETE(this->driver); }
/*! Common for all user renderer object deletion */ static void RendererObjectDelete(RendererObject *object) { PF_ASSERT(object); object->externalRefDec(); if (object->refDec()) PF_DELETE(object); }