mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Clear m_current_program when the program gets deleted
This commit is contained in:
committed by
Jelle Raaijmakers
parent
b0fcb35134
commit
c01f0e537e
Notes:
github-actions[bot]
2025-11-27 18:20:58 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/c01f0e537e6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6744 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/konradekk
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user