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