mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01:00
st/mesa: handle negative _ColorDrawBufferIndexes values correctly
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
bc4b7ebbfd
commit
82ab3f27ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue