mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Deduplicate the WebGL null_terminated_string helper
This commit is contained in:
committed by
Alexander Kalenik
parent
6c115171da
commit
df1aeda955
Notes:
github-actions[bot]
2025-11-05 01:20:56 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/df1aeda9552 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6676 Reviewed-by: https://github.com/kalenikaliaksandr ✅ Reviewed-by: https://github.com/konradekk
@@ -37,15 +37,6 @@ extern "C" {
|
||||
|
||||
namespace Web::WebGL {
|
||||
|
||||
static Vector<GLchar> null_terminated_string(StringView string)
|
||||
{
|
||||
Vector<GLchar> result;
|
||||
for (auto c : string.bytes())
|
||||
result.append(c);
|
||||
result.append('\0');
|
||||
return result;
|
||||
}
|
||||
|
||||
WebGL2RenderingContextImpl::WebGL2RenderingContextImpl(JS::Realm& realm, NonnullOwnPtr<OpenGLContext> context)
|
||||
: m_realm(realm)
|
||||
, m_context(move(context))
|
||||
|
||||
Reference in New Issue
Block a user