diff options
Diffstat (limited to 'src/render/texture/gltexture.cpp')
-rw-r--r-- | src/render/texture/gltexture.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/texture/gltexture.cpp b/src/render/texture/gltexture.cpp index a2e0dc5d0..606681bd5 100644 --- a/src/render/texture/gltexture.cpp +++ b/src/render/texture/gltexture.cpp @@ -188,6 +188,8 @@ QOpenGLTexture* GLTexture::getOrCreateGLTexture() if (!m_gl) { m_gl = buildGLTexture(); + if (!m_gl) + return nullptr; m_gl->allocateStorage(); if (!m_gl->isStorageAllocated()) { qWarning() << Q_FUNC_INFO << "texture storage allocation failed"; |