mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/WebGL2: Implement invalidateSubFramebuffer
This commit is contained in:
committed by
Jelle Raaijmakers
parent
b949c8ea47
commit
3d2874bc4e
Notes:
github-actions[bot]
2025-10-21 21:34:05 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/3d2874bc4e2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6538 Reviewed-by: https://github.com/gmta ✅
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user