1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00

Destroy EGL image after we are done with it

This commit is contained in:
fzurita 2021-05-01 10:26:49 -04:00 committed by Sergey Lipskiy
parent d93efe0c30
commit 0cf810416b

View File

@ -20,6 +20,10 @@ ColorBufferReaderWithEGLImage::ColorBufferReaderWithEGLImage(CachedTexture *_pTe
ColorBufferReaderWithEGLImage::~ColorBufferReaderWithEGLImage()
{
m_hardwareBuffer.release();
if (m_image != nullptr) {
eglDestroyImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), m_image);
}
}
void ColorBufferReaderWithEGLImage::_initBuffers()