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:
parent
d93efe0c30
commit
0cf810416b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user