Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/StarImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarImage.cpp b/source/core/StarImage.cpp
index 363e156..0147369 100644
--- a/source/core/StarImage.cpp
+++ b/source/core/StarImage.cpp
@@ -246,7 +246,7 @@ void Image::reset(unsigned width, unsigned height, Maybe<PixelFormat> pf) {
if (!pf)
pf = m_pixelFormat;
- if (m_data && m_width == width && m_height == height && m_pixelFormat == *pf)
+ if (m_width == width && m_height == height && m_pixelFormat == *pf)
return;
size_t imageSize = width * height * Star::bytesPerPixel(*pf);