mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +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()
|
ColorBufferReaderWithEGLImage::~ColorBufferReaderWithEGLImage()
|
||||||
{
|
{
|
||||||
m_hardwareBuffer.release();
|
m_hardwareBuffer.release();
|
||||||
|
|
||||||
|
if (m_image != nullptr) {
|
||||||
|
eglDestroyImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), m_image);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorBufferReaderWithEGLImage::_initBuffers()
|
void ColorBufferReaderWithEGLImage::_initBuffers()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user