diff options
author | Timothy Arceri <[email protected]> | 2017-04-14 13:33:32 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-04-18 10:01:55 +1000 |
commit | a63919f848d5cc97b20bb5afc4a6b2111a491707 (patch) | |
tree | c6c7d144b452dba2ae204d7d9cc598234c6fd891 /src/mesa/main | |
parent | d9d793696bf54e970491302605a1efd0aa182d1b (diff) |
mesa: rename _mesa_add_renderbuffer* functions
These names make it easier to understand what is going on in
regards to references.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/renderbuffer.c | 11 | ||||
-rw-r--r-- | src/mesa/main/renderbuffer.h | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index b58b3f3e913..5046f9d5f42 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -144,9 +144,9 @@ validate_and_init_renderbuffer_attachment(struct gl_framebuffer *fb, * used with a freshly created renderbuffer. */ void -_mesa_add_renderbuffer_without_ref(struct gl_framebuffer *fb, - gl_buffer_index bufferName, - struct gl_renderbuffer *rb) +_mesa_attach_and_own_rb(struct gl_framebuffer *fb, + gl_buffer_index bufferName, + struct gl_renderbuffer *rb) { assert(rb->RefCount == 1); @@ -162,8 +162,9 @@ _mesa_add_renderbuffer_without_ref(struct gl_framebuffer *fb, * \param bufferName one of the BUFFER_x tokens */ void -_mesa_add_renderbuffer(struct gl_framebuffer *fb, - gl_buffer_index bufferName, struct gl_renderbuffer *rb) +_mesa_attach_and_reference_rb(struct gl_framebuffer *fb, + gl_buffer_index bufferName, + struct gl_renderbuffer *rb) { validate_and_init_renderbuffer_attachment(fb, bufferName, rb); _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer, rb); diff --git a/src/mesa/main/renderbuffer.h b/src/mesa/main/renderbuffer.h index a6f14394982..f9a6462d536 100644 --- a/src/mesa/main/renderbuffer.h +++ b/src/mesa/main/renderbuffer.h @@ -47,13 +47,14 @@ extern void _mesa_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb); extern void -_mesa_add_renderbuffer_without_ref(struct gl_framebuffer *fb, - gl_buffer_index bufferName, - struct gl_renderbuffer *rb); +_mesa_attach_and_own_rb(struct gl_framebuffer *fb, + gl_buffer_index bufferName, + struct gl_renderbuffer *rb); extern void -_mesa_add_renderbuffer(struct gl_framebuffer *fb, - gl_buffer_index bufferName, struct gl_renderbuffer *rb); +_mesa_attach_and_reference_rb(struct gl_framebuffer *fb, + gl_buffer_index bufferName, + struct gl_renderbuffer *rb); extern void _mesa_remove_renderbuffer(struct gl_framebuffer *fb, |