Align rows to 8 bits only.
This commit is contained in:
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…
Reference in New Issue
Block a user