mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 23:04:17 +01:00
Fix serious bug in Image.cpp
This commit is contained in:
parent
83588a0c97
commit
ff210ed741
@ -93,7 +93,9 @@ Image<PixelType>::Image(const Image<PixelType> &other)
|
|||||||
, m_Height(other.m_Height)
|
, m_Height(other.m_Height)
|
||||||
, m_Pixels(new PixelType[GetNumPixels()])
|
, m_Pixels(new PixelType[GetNumPixels()])
|
||||||
{
|
{
|
||||||
|
if(other.m_Pixels) {
|
||||||
memcpy(m_Pixels, other.m_Pixels, GetNumPixels() * sizeof(PixelType));
|
memcpy(m_Pixels, other.m_Pixels, GetNumPixels() * sizeof(PixelType));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename PixelType>
|
template<typename PixelType>
|
||||||
|
Loading…
Reference in New Issue
Block a user