Fix Image copy ctor bug reported by Richard Sim.
This commit is contained in:
parent
9f4b4bd532
commit
75c09220c8
@ -15,7 +15,7 @@ Image::Image() : m_width(0), m_height(0), m_format(Format_RGB), m_data(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
Image::Image(const Image & img)
|
||||
Image::Image(const Image & img) : m_data(NULL)
|
||||
{
|
||||
allocate(img.m_width, img.m_height);
|
||||
m_format = img.m_format;
|
||||
|
Loading…
Reference in New Issue
Block a user