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/drivers/osmesa | |
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/drivers/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 68fca3e6326..a3d4facdea0 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1020,15 +1020,15 @@ OSMesaMakeCurrent( OSMesaContext osmesa, void *buffer, GLenum type, * There is no back color buffer. * If the user tries to use a 8, 16 or 32-bit/channel buffer that * doesn't match what Mesa was compiled for (CHAN_BITS) the - * _mesa_add_renderbuffer() function will create a "wrapper" renderbuffer - * that converts rendering from CHAN_BITS to the user-requested channel - * size. + * _mesa_attach_and_reference_rb() function will create a "wrapper" + * renderbuffer that converts rendering from CHAN_BITS to the + * user-requested channel size. */ if (!osmesa->srb) { osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type); _mesa_remove_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT); - _mesa_add_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT, - &osmesa->srb->Base); + _mesa_attach_and_reference_rb(osmesa->gl_buffer, BUFFER_FRONT_LEFT, + &osmesa->srb->Base); assert(osmesa->srb->Base.RefCount == 2); } @@ -1051,8 +1051,8 @@ OSMesaMakeCurrent( OSMesaContext osmesa, void *buffer, GLenum type, * renderbuffer adaptor/wrapper if needed (for bpp conversion). */ _mesa_remove_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT); - _mesa_add_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT, - &osmesa->srb->Base); + _mesa_attach_and_reference_rb(osmesa->gl_buffer, BUFFER_FRONT_LEFT, + &osmesa->srb->Base); /* this updates the visual's red/green/blue/alphaBits fields */ |