mesa: fix up assertion in _mesa_source_buffer_exists
authorMarek Olšák <maraeo@gmail.com>
Mon, 14 Mar 2011 09:20:55 +0000 (10:20 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 14 Mar 2011 09:24:24 +0000 (10:24 +0100)
commitc0110d5450f2d4722652728a6b30bc9ae6b81c60
treea2cdd99c0d65ad73011b7ff30cb4e19a126f2c57
parent23ccab39cd6b89efd8be238c3061e7ddb3697a55
mesa: fix up assertion in _mesa_source_buffer_exists

This was probably missed when implementing luminance and luminance alpha
render targets.

_mesa_get_format_bits checks for both GL_*_BITS and GL_TEXTURE_*_SIZE.

This fixes:
main/framebuffer.c:892: _mesa_source_buffer_exists: Assertion `....' failed.
src/mesa/main/framebuffer.c