Integrating github/staging through commit ab87ed9

This commit is contained in:
alexpete
2021-04-09 11:27:37 -07:00
parent ae62a97894
commit 1044dc3da1
1582 changed files with 29374 additions and 519051 deletions
@@ -156,15 +156,12 @@ bool WriteTGA(const byte* data, int width, int height, const char* filename, int
int hxw = height * width;
int right = 0;
const DWORD* temp_dp = (const DWORD*)data; // data = input pointer
const DWORD* swap = 0;
UINT src_bytes_per_pixel = src_bits_per_pixel / 8;
UINT size_in_bytes = hxw * src_bytes_per_pixel;
if (src_bits_per_pixel == dest_bits_per_pixel)
{