mesa/clear: fix crashes with illegal clear tests.
authorDave Airlie <airlied@redhat.com>
Tue, 10 Jan 2012 12:48:26 +0000 (12:48 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 07:06:25 +0000 (07:06 +0000)
commit092cf9a5b598710c12739b4cdb50649cd66fe231
tree8ecf842034793f239a8da9b96c4a8b84d263ac84
parent863554168ef34ecb7b72650ced78cc9aed923691
mesa/clear: fix crashes with illegal clear tests.

Mesa shouldn't call into the drivers if there are no renderbuffers
bound to the attachments for the buffers to be cleared.

Fixes a number of the clearbuffer-* tests on softpipe.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/clear.c