From 82ab3f27ffed2f0f8e324a384dc4eab7f9f996be Mon Sep 17 00:00:00 2001 From: Francesco Ansanelli Date: Thu, 23 Jun 2016 19:56:09 +0200 Subject: [PATCH] st/mesa: handle negative _ColorDrawBufferIndexes values correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Olšák --- src/mesa/state_tracker/st_cb_fbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 9801b1fe108..d762ca660a4 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -704,7 +704,7 @@ st_DrawBuffers(struct gl_context *ctx, GLsizei count, const GLenum *buffers) /* add the renderbuffers on demand */ for (i = 0; i < fb->_NumColorDrawBuffers; i++) { - gl_buffer_index idx = fb->_ColorDrawBufferIndexes[i]; + GLint idx = fb->_ColorDrawBufferIndexes[i]; if (idx >= 0) { st_manager_add_color_renderbuffer(st, fb, idx); -- 2.30.2