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/main/framebuffer.c | |
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/main/framebuffer.c')
-rw-r--r-- | src/mesa/main/framebuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index 663c4034d4a..b17d7cbc94c 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -563,8 +563,8 @@ update_color_draw_buffers(struct gl_context *ctx, struct gl_framebuffer *fb) fb->_ColorDrawBuffers[0] = NULL; for (output = 0; output < fb->_NumColorDrawBuffers; output++) { - GLint buf = fb->_ColorDrawBufferIndexes[output]; - if (buf >= 0) { + gl_buffer_index buf = fb->_ColorDrawBufferIndexes[output]; + if (buf != BUFFER_NONE) { fb->_ColorDrawBuffers[output] = fb->Attachment[buf].Renderbuffer; } else { |