mesa: stop using _mesa_error_check_format_type() in glDrawPixels
authorBrian Paul <brianp@vmware.com>
Tue, 7 Feb 2012 14:42:33 +0000 (07:42 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 7 Feb 2012 14:42:33 +0000 (07:42 -0700)
commit6bed7a861da05ef9751b373a78490db1c5b3e277
tree6c713faa64e1aa970bf0692f317c782c33f73598
parent675d44629c4099157404065fe86932186a53334f
mesa: stop using _mesa_error_check_format_type() in glDrawPixels

The _mesa_error_check_format_type() function does two things: check
that format/type is legal and check that the destination (or source
buffer for glReadPixels) actually exists.  Just move the relevant
parts of that into _mesa_DrawPixels().

We'll do a similar change in glReadPixels then get rid of the function
altogether.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/drawpix.c