diff options
author | Keith Packard <[email protected]> | 2013-11-23 21:58:14 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-12-20 16:31:09 -0800 |
commit | 6b5111398110f9ae374723ad6225ada1a0e60fd2 (patch) | |
tree | 3e2fad1fad0266b31cb9f2eb9c99cc80ddcd4053 /src/glx/dri3_glx.c | |
parent | 547bcc4b571e303c562d99dde74b915e56da54c0 (diff) |
dri3: Rename DRI3_MAX_BACK to DRI3_NUM_BACK
It is the maximum number of back buffers, but the name is confusing and is
easily read as the maximum back buffer index. Chage to DRI3_NUM_BACK to make
the intended usage a bit clearer.
Signed-off-by: Keith Packard <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r-- | src/glx/dri3_glx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 4c0dc29fdf8..4aae182199c 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -1034,7 +1034,7 @@ dri3_find_back(xcb_connection_t *c, struct dri3_drawable *priv) for (;;) { - for (b = 0; b < DRI3_MAX_BACK; b++) { + for (b = 0; b < DRI3_NUM_BACK; b++) { int id = DRI3_BACK_ID(b); struct dri3_buffer *buffer = priv->buffers[id]; @@ -1150,7 +1150,7 @@ dri3_free_buffers(__DRIdrawable *driDrawable, switch (buffer_type) { case dri3_buffer_back: first_id = DRI3_BACK_ID(0); - n_id = DRI3_MAX_BACK; + n_id = DRI3_NUM_BACK; break; case dri3_buffer_front: first_id = DRI3_FRONT_ID; |