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:
parent
80b6a26a09
commit
68b7274c5d
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ AbstractEglTexture::AbstractEglTexture(SceneOpenGL::Texture *texture, AbstractEg
|
||||||
: SceneOpenGL::TexturePrivate()
|
: SceneOpenGL::TexturePrivate()
|
||||||
, q(texture)
|
, q(texture)
|
||||||
, m_backend(backend)
|
, m_backend(backend)
|
||||||
|
, m_image(EGL_NO_IMAGE_KHR)
|
||||||
{
|
{
|
||||||
m_target = GL_TEXTURE_2D;
|
m_target = GL_TEXTURE_2D;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue