LibWeb/WebGL2: Implement drawRangeElements

This commit is contained in:
Luke Wilde 2025-10-20 18:22:10 +01:00 committed by Jelle Raaijmakers
parent 2c13a2a68c
commit 8dcbe69eb6
Notes: github-actions[bot] 2025-10-21 21:34:31 +00:00
3 changed files with 10 additions and 1 deletions

View file

@ -404,6 +404,14 @@ void WebGL2RenderingContextImpl::draw_elements_instanced(WebIDL::UnsignedLong mo
needs_to_present();
}
void WebGL2RenderingContextImpl::draw_range_elements(WebIDL::UnsignedLong mode, WebIDL::UnsignedLong start, WebIDL::UnsignedLong end, WebIDL::Long count, WebIDL::UnsignedLong type, WebIDL::LongLong offset)
{
m_context->make_current();
m_context->notify_content_will_change();
needs_to_present();
glDrawRangeElements(mode, start, end, count, type, reinterpret_cast<void*>(offset));
}
void WebGL2RenderingContextImpl::draw_buffers(Vector<WebIDL::UnsignedLong> buffers)
{
m_context->make_current();