From f8bae523d98953aa17105ecf12c5db499deb58ad Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Nov 2017 22:18:40 -0700 Subject: 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 --- src/mesa/state_tracker/st_cb_fbo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/state_tracker/st_cb_fbo.c') diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index a7c286bcc52..e2303b4011f 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -721,9 +721,9 @@ st_DrawBuffers(struct gl_context *ctx, GLsizei count, const GLenum *buffers) GLuint i; /* add the renderbuffers on demand */ for (i = 0; i < fb->_NumColorDrawBuffers; i++) { - GLint idx = fb->_ColorDrawBufferIndexes[i]; + gl_buffer_index idx = fb->_ColorDrawBufferIndexes[i]; - if (idx >= 0) { + if (idx != BUFFER_NONE) { st_manager_add_color_renderbuffer(st, fb, idx); } } -- cgit v1.2.3