Fixed a missing return for performance.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@789 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
9b5c411745
commit
95505b00c4
|
@ -1282,7 +1282,10 @@ void CImage::copyToScaling(void* target, s32 width, s32 height, ECOLOR_FORMAT fo
|
|||
pitch = width*bpp;
|
||||
|
||||
if (Format==format && Size.Width==width && Size.Height==height && pitch==width*bpp)
|
||||
{
|
||||
memcpy(target, Data, height*pitch);
|
||||
return;
|
||||
}
|
||||
|
||||
const f32 sourceXStep = (f32)Size.Width / (f32)width;
|
||||
const f32 sourceYStep = (f32)Size.Height / (f32)height;
|
||||
|
|
Loading…
Reference in New Issue