diff options
author | marha <marha@users.sourceforge.net> | 2014-01-20 17:47:31 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-01-20 17:47:31 +0100 |
commit | 78d84bd03c744b0ed420c450dd2807904ccaef21 (patch) | |
tree | 5047a42b383693eed77091fb86950c6248681ad9 /mesalib/src/mesa | |
parent | 1917325d5254a9ca33dae8ee5817dfdb7be5a24a (diff) | |
parent | 775780ea274e6602c2d64de33a98ee35979cc330 (diff) | |
download | vcxsrv-78d84bd03c744b0ed420c450dd2807904ccaef21.tar.gz vcxsrv-78d84bd03c744b0ed420c450dd2807904ccaef21.tar.bz2 vcxsrv-78d84bd03c744b0ed420c450dd2807904ccaef21.zip |
Merge remote-tracking branch 'origin/released'
* origin/released:
ligXext mesa git update 20 Jan 2014
fontconfig mesa git update 19 Jan 2013
Conflicts:
mesalib/src/loader/Android.mk
mesalib/src/loader/Makefile.am
mesalib/src/loader/SConscript
mesalib/src/loader/loader.c
tools/mhmake/config.guess
Diffstat (limited to 'mesalib/src/mesa')
-rw-r--r-- | mesalib/src/mesa/swrast/s_renderbuffer.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mesalib/src/mesa/swrast/s_renderbuffer.c b/mesalib/src/mesa/swrast/s_renderbuffer.c index e3f33de7d..a19d02ac0 100644 --- a/mesalib/src/mesa/swrast/s_renderbuffer.c +++ b/mesalib/src/mesa/swrast/s_renderbuffer.c @@ -659,8 +659,10 @@ _swrast_map_renderbuffers(struct gl_context *ctx) } for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { - map_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); - find_renderbuffer_colortype(fb->_ColorDrawBuffers[buf]); + if (fb->_ColorDrawBufferIndexes[buf] >= 0) { + map_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); + find_renderbuffer_colortype(fb->_ColorDrawBuffers[buf]); + } } } @@ -688,6 +690,8 @@ _swrast_unmap_renderbuffers(struct gl_context *ctx) } for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { - unmap_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); + if (fb->_ColorDrawBufferIndexes[buf] >= 0) { + unmap_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); + } } } |