swrast: Remove redundant test of the visual's accumulation buffer size
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 4 Mar 2010 01:17:56 +0000 (17:17 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 6 Mar 2010 00:04:59 +0000 (16:04 -0800)
commit66c0abba6ba89d326555389d9539894402303286
tree101127ccf3b5f263675fe8c77da98fd167b1e99b
parentebbec7e4e44fccf496a9a663bdcc643efead6e95
swrast: Remove redundant test of the visual's accumulation buffer size

If the visual doesn't have an accumulation buffer, the renderbuffer
passed into _swrast_clear_accum_buffer will be NULL anyway.  There is
no reason the check the visual.  Moreover, the test erroneously checks
the context's visual instead of the visual of the current DrawBuffer.
With FBOs these may be different.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/swrast/s_accum.c