Matteo Bruni : d3dx9: Fix memory access for images with less than 4 bytes per pixel (Valgrind).