Initialize AbstractEglTexture::m_image

If not set to EGL_NO_IMAGE_KHR the dtor might call eglDestroyImageKHR
for an image which never got created resulting in undefined behavior.
This commit is contained in:
Martin Gräßlin 2015-10-09 12:26:17 +02:00
parent 80b6a26a09
commit 68b7274c5d

View file

@ -182,6 +182,7 @@ AbstractEglTexture::AbstractEglTexture(SceneOpenGL::Texture *texture, AbstractEg
: SceneOpenGL::TexturePrivate()
, q(texture)
, m_backend(backend)
, m_image(EGL_NO_IMAGE_KHR)
{
m_target = GL_TEXTURE_2D;
}