aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp')
-rw-r--r--src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp b/src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp
index c9545d5e9a..3dd1f9133c 100644
--- a/src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp
+++ b/src/plugins/scenegraph/openvg/qsgopenvginternalimagenode.cpp
@@ -79,6 +79,9 @@ void QSGOpenVGInternalImageNode::render()
VGImage image = static_cast<VGImage>(m_texture->textureId());
QSize textureSize = m_texture->textureSize();
+ if (image == VG_INVALID_HANDLE || !textureSize.isValid())
+ return;
+
// If Mirrored
if (m_mirror) {