Lines Matching refs:newRb
906 struct gl_renderbuffer *newRb; in _mesa_BindRenderbufferEXT() local
921 newRb = _mesa_lookup_renderbuffer(ctx, renderbuffer); in _mesa_BindRenderbufferEXT()
922 if (newRb == &DummyRenderbuffer) { in _mesa_BindRenderbufferEXT()
924 newRb = NULL; in _mesa_BindRenderbufferEXT()
926 else if (!newRb && ctx->Extensions.ARB_framebuffer_object) { in _mesa_BindRenderbufferEXT()
932 if (!newRb) { in _mesa_BindRenderbufferEXT()
934 newRb = ctx->Driver.NewRenderbuffer(ctx, renderbuffer); in _mesa_BindRenderbufferEXT()
935 if (!newRb) { in _mesa_BindRenderbufferEXT()
939 ASSERT(newRb->AllocStorage); in _mesa_BindRenderbufferEXT()
940 _mesa_HashInsert(ctx->Shared->RenderBuffers, renderbuffer, newRb); in _mesa_BindRenderbufferEXT()
941 newRb->RefCount = 1; /* referenced by hash table */ in _mesa_BindRenderbufferEXT()
945 newRb = NULL; in _mesa_BindRenderbufferEXT()
948 ASSERT(newRb != &DummyRenderbuffer); in _mesa_BindRenderbufferEXT()
950 _mesa_reference_renderbuffer(&ctx->CurrentRenderbuffer, newRb); in _mesa_BindRenderbufferEXT()