Mesa (master): st/mesa: handle negative _ColorDrawBufferIndexes values correctly
Marek Olšák
mareko at kemper.freedesktop.org
Fri Jun 24 10:41:52 UTC 2016
Module: Mesa
Branch: master
Commit: 82ab3f27ffed2f0f8e324a384dc4eab7f9f996be
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82ab3f27ffed2f0f8e324a384dc4eab7f9f996be
Author: Francesco Ansanelli <francians at gmail.com>
Date: Thu Jun 23 19:56:09 2016 +0200
st/mesa: handle negative _ColorDrawBufferIndexes values correctly
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
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 9801b1f..d762ca6 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);
More information about the mesa-commit
mailing list