swrast: allow GL_RG format in glDrawPixels()
authorBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 21:48:01 +0000 (14:48 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 21:48:03 +0000 (14:48 -0700)
commit75746e3779f9100fab8ac76242124152772dd8d9
treea4d90424d62a98953396692586b77bbb988cbca4
parentb87369e863c4c9650ef3a04a111e9ca79bca9e08
swrast: allow GL_RG format in glDrawPixels()

Restructure the switch statement to avoid having to add additional
color formats in the future.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=32086
src/mesa/swrast/s_drawpix.c