main/format_pack: Fix a wrong datatype in pack_ubyte_R8G8_UNORM
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Jul 2014 05:19:49 +0000 (22:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 19 Jul 2014 01:34:36 +0000 (18:34 -0700)
commitecd3e89b32c851f21e8cf2ac78c38e0e12f28ca6
treee5f2ba936a93cbd6f0080aadf0d1799e8bf2358b
parent8ed24543f8834ef2591715ca43df538bfe5fdf06
main/format_pack: Fix a wrong datatype in pack_ubyte_R8G8_UNORM

Before it was only storing one of the color components due to truncation.
With this patch it now properly stores all of them.

Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/main/format_pack.c