st/xlib Fix XIMage bytes-per-pixel calculation
authorRichard Sandiford <r.sandiford@uk.ibm.com>
Mon, 17 Jun 2013 16:10:49 +0000 (12:10 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 17 Jun 2013 16:14:32 +0000 (12:14 -0400)
commit876fefe2ff8901ae4b908cff89ac5dd4324f4fe5
tree05e169c681efd235eb77eccda6de90e97dddbd9f
parentebd68dd02998a8595cb10844c37a6b02dc3078a8
st/xlib Fix XIMage bytes-per-pixel calculation

Fixes a crash seen while running gnome on a 16-bit screen over vnc.

NOTE: This is a candidate for stable release branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
src/gallium/state_trackers/glx/xlib/xm_api.c