LibWeb/WebGL2: Implement invalidateSubFramebuffer

This commit is contained in:
Luke Wilde 2025-10-20 20:36:13 +01:00 committed by Jelle Raaijmakers
parent b949c8ea47
commit 3d2874bc4e
Notes: github-actions[bot] 2025-10-21 21:34:05 +00:00
3 changed files with 11 additions and 1 deletions

View file

@ -101,6 +101,15 @@ void WebGL2RenderingContextImpl::invalidate_framebuffer(WebIDL::UnsignedLong tar
needs_to_present();
}
void WebGL2RenderingContextImpl::invalidate_sub_framebuffer(WebIDL::UnsignedLong target, Vector<WebIDL::UnsignedLong> attachments, WebIDL::Long x, WebIDL::Long y, WebIDL::Long width, WebIDL::Long height)
{
m_context->make_current();
m_context->notify_content_will_change();
glInvalidateSubFramebuffer(target, attachments.size(), attachments.data(), x, y, width, height);
needs_to_present();
}
void WebGL2RenderingContextImpl::read_buffer(WebIDL::UnsignedLong src)
{
m_context->make_current();