mesa: adjust usage of swapBytes/littleEndian in format_matches_format_and_type
authorMarek Olšák <maraeo@gmail.com>
Tue, 29 Jan 2013 19:58:55 +0000 (20:58 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 11 Feb 2013 18:43:01 +0000 (19:43 +0100)
commit5587c8619a5501181fc47df53cc4bbdac1576b41
tree3beeee9cb091901ef031ec884f51f6b71742520e
parentdcdffaaf43fbca6e6a2e9418c8eeddb70a001d3d
mesa: adjust usage of swapBytes/littleEndian in format_matches_format_and_type

- swapBytes has no effect on 8-bit single-component formats
- GL_SHORT is in host byte order, so checking for littleEndian is unnecessary,
  I decided to make the change for single-component formats only

Based on suggestions from Michel Dänzer.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/mesa/main/formats.c