Same ole Atlas Clipmap bugs
by Jeremiah Fulbright · in Torque Game Engine Advanced · 10/05/2008 (6:06 pm) · 0 replies
We've been busy working on things, but it seems now that we have some other people outside of our team testing things, we're seeing a crash that has been consistent since early TGEA builds.
That is in AtlasClipMapImageSource::copyBits
Specifially
We have a couple terrains which crash inside the while loop on the *curOut line. This doesn't seem to happen for everybody though. I see that if the bytesPerPixel was 4, it just would do a pretty straight forward copy. I don't guess it is possible to just "update" to that lol..
Anyways, this has been around awhile unfortunately
That is in AtlasClipMapImageSource::copyBits
Specifially
else if( bitmap->bytesPerPixel == 3 )
{
// Do a fast little copy
const U8 *curIn = bmpBits;
const U8 *endIn = (bmpBits + numPixels * 3);
U32 *curOut = (U32*)outBits;
while(curIn < endIn)
{
*curOut = (*(U32*)curIn) & 0x00FFFFFF;
curIn+=3;
curOut++;
}
}We have a couple terrains which crash inside the while loop on the *curOut line. This doesn't seem to happen for everybody though. I see that if the bytesPerPixel was 4, it just would do a pretty straight forward copy. I don't guess it is possible to just "update" to that lol..
Anyways, this has been around awhile unfortunately