Lines Matching defs:fb
351 static GLboolean crStateGetFBOAttachmentPoint(CRFramebufferObject *fb, GLenum attachment, CRFBOAttachmentPoint **ap)
356 *ap = &fb->depth;
359 *ap = &fb->stencil;
364 *ap = &fb->color[attachment-GL_COLOR_ATTACHMENT0_EXT];
416 static void ctStateFramebufferRefsCleanup(CRContext *g, CRFramebufferObject *fb)
419 if (fbo->readFB==fb)
423 if (fbo->drawFB==fb)
428 CR_STATE_SHAREDOBJ_USAGE_CLEAR(fb, g);
444 CRFramebufferObject *fb;
445 fb = (CRFramebufferObject*) crHashtableSearch(g->shared->fbTable, framebuffers[i]);
446 if (fb)
450 ctStateFramebufferRefsCleanup(g, fb);
452 CR_STATE_SHAREDOBJ_USAGE_FOREACH_USED_IDX(fb, j)
464 if (ctxFbo->readFB==fb)
467 if (ctxFbo->drawFB==fb)
470 ctStateFramebufferRefsCleanup(ctx, fb);
473 CR_STATE_SHAREDOBJ_USAGE_CLEAR_IDX(fb, j);