diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp index 33c37a4..ac1fb9a 100644 --- a/source/core/StarImage.cpp +++ b/source/core/StarImage.cpp @@ -244,7 +244,7 @@ void Image::reset(unsigned width, unsigned height, Maybe pf) { if (!pf) pf = m_pixelFormat; - if (m_width == width && m_height == height && m_pixelFormat == *pf) + if (m_data && m_width == width && m_height == height && m_pixelFormat == *pf) return; size_t imageSize = width * height * Star::bytesPerPixel(*pf);