mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Clear m_current_program when the program gets deleted
This commit is contained in:
parent
b0fcb35134
commit
c01f0e537e
Notes:
github-actions[bot]
2025-11-27 18:20:58 +00:00
Author: https://github.com/cqundefine
Commit: c01f0e537e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6744
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/konradekk
1 changed files with 2 additions and 0 deletions
|
|
@ -479,6 +479,8 @@ void WebGLRenderingContextImpl::delete_program(GC::Root<WebGLProgram> program)
|
|||
program_handle = handle_or_error.release_value();
|
||||
}
|
||||
glDeleteProgram(program_handle);
|
||||
if (m_current_program == program)
|
||||
m_current_program = nullptr;
|
||||
}
|
||||
|
||||
void WebGLRenderingContextImpl::delete_renderbuffer(GC::Root<WebGLRenderbuffer> renderbuffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue