diff --git a/src/scenes/opengl/scene_opengl.cpp b/src/scenes/opengl/scene_opengl.cpp index 8b03f0d698..bf2f3a1bdc 100644 --- a/src/scenes/opengl/scene_opengl.cpp +++ b/src/scenes/opengl/scene_opengl.cpp @@ -1587,6 +1587,10 @@ static void clamp_sides(int left, int width, int right, const uint32_t *src, uin static void clamp(QImage &image, const QRect &viewport) { Q_ASSERT(image.depth() == 32); + if (viewport.isEmpty()) { + image = {}; + return; + } const QRect rect = image.rect();