diff options
Diffstat (limited to 'src/mesa/swrast/s_renderbuffer.c')
-rw-r--r-- | src/mesa/swrast/s_renderbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_renderbuffer.c b/src/mesa/swrast/s_renderbuffer.c index 66a823def32..f76489c2005 100644 --- a/src/mesa/swrast/s_renderbuffer.c +++ b/src/mesa/swrast/s_renderbuffer.c @@ -659,7 +659,7 @@ _swrast_map_renderbuffers(struct gl_context *ctx) } for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { - if (fb->_ColorDrawBufferIndexes[buf] >= 0) { + if (fb->_ColorDrawBufferIndexes[buf] != BUFFER_NONE) { map_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); find_renderbuffer_colortype(fb->_ColorDrawBuffers[buf]); } @@ -690,7 +690,7 @@ _swrast_unmap_renderbuffers(struct gl_context *ctx) } for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { - if (fb->_ColorDrawBufferIndexes[buf] >= 0) { + if (fb->_ColorDrawBufferIndexes[buf] != BUFFER_NONE) { unmap_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); } } |