diff options
author | Brian Paul <[email protected]> | 2017-11-08 22:18:40 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-11-09 14:13:59 -0700 |
commit | f8bae523d98953aa17105ecf12c5db499deb58ad (patch) | |
tree | 718d93771894324eaf2cbb94bbc8769dc2680080 /src/mesa/drivers/common | |
parent | 366453f4d36e75bb4d8ec66feb5db7c92c748739 (diff) |
mesa: s/GLint/gl_buffer_index/ for _ColorDrawBufferIndexes
Also fix local variable declarations and replace -1 with BUFFER_NONE.
No Piglit changes.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index bae04bea516..1cc736cff1c 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1655,7 +1655,7 @@ _mesa_meta_drawbuffers_and_colormask(struct gl_context *ctx, GLbitfield mask) enums[0] = GL_NONE; for (int i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers; i++) { - int b = ctx->DrawBuffer->_ColorDrawBufferIndexes[i]; + gl_buffer_index b = ctx->DrawBuffer->_ColorDrawBufferIndexes[i]; int colormask_idx = ctx->Extensions.EXT_draw_buffers2 ? i : 0; if (b < 0 || !(mask & (1 << b)) || is_color_disabled(ctx, colormask_idx)) |