Align rows to 8 bits only.

2.0
castano 14 years ago
parent 9ce42ecfa4
commit e2ac16f100

@ -39,10 +39,8 @@ namespace
inline uint computePitch(uint w, uint bitsize)
{
uint p = w * ((bitsize + 7) / 8);
// Align to 32 bits.
return ((p + 3) / 4) * 4;
// Align to 8 bits.
return w * ((bitsize + 7) / 8);
}
inline void convert_to_a8r8g8b8(const void * src, void * dst, uint w)

Loading…
Cancel
Save