Merge pull request #872 from LaurensVoerman/commit_tgaFixMaster
fix debug compile error for ReaderWriterTGA
This commit is contained in:
commit
2f9537c07d
@ -656,7 +656,7 @@ int *numComponents_ret)
|
|||||||
{
|
{
|
||||||
rle_decode(&src, linebuf.data(), width*depth, &rleRemaining,
|
rle_decode(&src, linebuf.data(), width*depth, &rleRemaining,
|
||||||
&rleIsCompressed, rleCurrent, rleEntrySize);
|
&rleIsCompressed, rleCurrent, rleEntrySize);
|
||||||
assert(src <= buf + size);
|
assert(src <= buf.data() + size);
|
||||||
|
|
||||||
for (x = 0; x < width; x++)
|
for (x = 0; x < width; x++)
|
||||||
{
|
{
|
||||||
@ -722,7 +722,7 @@ int *numComponents_ret)
|
|||||||
{
|
{
|
||||||
rle_decode(&src, linebuf.data(), width*depth, &rleRemaining,
|
rle_decode(&src, linebuf.data(), width*depth, &rleRemaining,
|
||||||
&rleIsCompressed, rleCurrent, rleEntrySize);
|
&rleIsCompressed, rleCurrent, rleEntrySize);
|
||||||
assert(src <= buf + size);
|
assert(src <= buf.data() + size);
|
||||||
for (x = 0; x < width; x++)
|
for (x = 0; x < width; x++)
|
||||||
{
|
{
|
||||||
convert_data(linebuf.data(), dest, bLeftToRight ? x : (width-1) - x, depth, format);
|
convert_data(linebuf.data(), dest, bLeftToRight ? x : (width-1) - x, depth, format);
|
||||||
|
Loading…
Reference in New Issue
Block a user