mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 07:20:46 +00:00
LibWeb/WebGL: Free back buffer texture when context is destroyed
This commit is contained in:
parent
38713d7c14
commit
89762e2ff3
Notes:
github-actions[bot]
2025-05-26 14:17:37 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 89762e2ff3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4886
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ OpenGLContext::~OpenGLContext()
|
||||||
glDeleteFramebuffers(1, &m_impl->framebuffer);
|
glDeleteFramebuffers(1, &m_impl->framebuffer);
|
||||||
glDeleteRenderbuffers(1, &m_impl->depth_buffer);
|
glDeleteRenderbuffers(1, &m_impl->depth_buffer);
|
||||||
eglDestroyContext(m_impl->display, m_impl->context);
|
eglDestroyContext(m_impl->display, m_impl->context);
|
||||||
|
eglReleaseTexImage(m_impl->display, m_impl->surface, EGL_BACK_BUFFER);
|
||||||
eglDestroySurface(m_impl->display, m_impl->surface);
|
eglDestroySurface(m_impl->display, m_impl->surface);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue