mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-25 22:57:46 +00:00
Fix serious bug in Image.cpp
This commit is contained in:
parent
83588a0c97
commit
ff210ed741
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ Image<PixelType>::Image(const Image<PixelType> &other)
|
|||
, m_Height(other.m_Height)
|
||||
, m_Pixels(new PixelType[GetNumPixels()])
|
||||
{
|
||||
if(other.m_Pixels) {
|
||||
memcpy(m_Pixels, other.m_Pixels, GetNumPixels() * sizeof(PixelType));
|
||||
}
|
||||
}
|
||||
|
||||
template<typename PixelType>
|
||||
|
|
Loading…
Reference in a new issue