mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/WebGL2: Implement invalidateSubFramebuffer
This commit is contained in:
parent
b949c8ea47
commit
3d2874bc4e
Notes:
github-actions[bot]
2025-10-21 21:34:05 +00:00
Author: https://github.com/Lubrsi
Commit: 3d2874bc4e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6538
Reviewed-by: https://github.com/gmta ✅
3 changed files with 11 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue