Fix function d3d_surface_to_texture.

The 16-bit color source to 24-bit color copy was incorrect.  See difference.
This commit is contained in:
aignacio_sf 2005-12-13 19:29:45 +00:00
parent ea3279d087
commit 093b07b81c

View File

@ -943,9 +943,10 @@ d3d_surface_to_texture(RECT &source_rect, IDirect3DSurface9 *d3d_surface,
g = (pixel & greenmask) >> greenshift;
r = (pixel & redmask) >> redshift;
*dest_byte += b;
*dest_byte += g;
*dest_byte += r;
*dest_byte++ = b;
*dest_byte++ = g;
*dest_byte++ = r;
source_word++;
}
surface_bytes += byte_pitch;