mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 03:55:49 +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()])
|
||||||
{
|
{
|
||||||
memcpy(m_Pixels, other.m_Pixels, GetNumPixels() * sizeof(PixelType));
|
if(other.m_Pixels) {
|
||||||
|
memcpy(m_Pixels, other.m_Pixels, GetNumPixels() * sizeof(PixelType));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename PixelType>
|
template<typename PixelType>
|
||||||
|
Loading…
Reference in New Issue
Block a user