mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb/WebGL2: Implement drawRangeElements
This commit is contained in:
committed by
Jelle Raaijmakers
parent
2c13a2a68c
commit
8dcbe69eb6
Notes:
github-actions[bot]
2025-10-21 21:34:31 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/8dcbe69eb65 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6538 Reviewed-by: https://github.com/gmta ✅
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user