Lines Matching refs:newRb
1316 struct gl_renderbuffer *newRb; in allocate_renderbuffer_locked() local
1319 newRb = ctx->Driver.NewRenderbuffer(ctx, renderbuffer); in allocate_renderbuffer_locked()
1320 if (!newRb) { in allocate_renderbuffer_locked()
1324 assert(newRb->AllocStorage); in allocate_renderbuffer_locked()
1325 _mesa_HashInsertLocked(ctx->Shared->RenderBuffers, renderbuffer, newRb); in allocate_renderbuffer_locked()
1326 newRb->RefCount = 1; /* referenced by hash table */ in allocate_renderbuffer_locked()
1328 return newRb; in allocate_renderbuffer_locked()
1335 struct gl_renderbuffer *newRb; in bind_renderbuffer() local
1348 newRb = _mesa_lookup_renderbuffer(ctx, renderbuffer); in bind_renderbuffer()
1349 if (newRb == &DummyRenderbuffer) { in bind_renderbuffer()
1351 newRb = NULL; in bind_renderbuffer()
1353 else if (!newRb && !allow_user_names) { in bind_renderbuffer()
1359 if (!newRb) { in bind_renderbuffer()
1361 newRb = allocate_renderbuffer_locked(ctx, renderbuffer, in bind_renderbuffer()
1367 newRb = NULL; in bind_renderbuffer()
1370 assert(newRb != &DummyRenderbuffer); in bind_renderbuffer()
1372 _mesa_reference_renderbuffer(&ctx->CurrentRenderbuffer, newRb); in bind_renderbuffer()