a) grab the source mipmap levels not the dest ones for copy. b) lets rely less on trusting sizeof*4 when we've gor a size per pixel lookup already there

This commit is contained in:
AzaezelX 2020-06-29 21:26:08 -05:00
parent 24e6d8c73c
commit ce2b05e0e2
2 changed files with 2 additions and 2 deletions

View file

@ -189,7 +189,7 @@ bool GFXGLTextureObject::copyToBmp(GBitmap * bmp)
PROFILE_START(GFXGLTextureObject_copyToBmp_pixCopy);
if (mFormat == GFXFormatR16G16B16A16F)
{
dMemcpy(dest, orig, srcPixelCount * sizeof(U16) * 4);
dMemcpy(dest, orig, srcPixelCount * srcBytesPerPixel);
}
else
{