Merge change I0e27b5ca into eclair

* changes:
  Fix texture upload bug for narrow texture of less than 32bpp.