mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +00:00
LibWeb/WebGL: Free back buffer texture when context is destroyed
This commit is contained in:
parent
394692fd7e
commit
0c201b2f5f
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ OpenGLContext::~OpenGLContext()
|
|||
glDeleteFramebuffers(1, &m_impl->framebuffer);
|
||||
glDeleteRenderbuffers(1, &m_impl->depth_buffer);
|
||||
eglDestroyContext(m_impl->display, m_impl->context);
|
||||
eglReleaseTexImage(m_impl->display, m_impl->surface, EGL_BACK_BUFFER);
|
||||
eglDestroySurface(m_impl->display, m_impl->surface);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue