LibWeb: Make WebGL extensions creation agnostic of WebGL version

This commit is contained in:
Undefine
2026-03-05 19:37:33 +01:00
committed by Jelle Raaijmakers
parent 502f2618aa
commit 5a029b4533
Notes: github-actions[bot] 2026-03-11 19:21:54 +00:00
25 changed files with 58 additions and 57 deletions

View File

@@ -9,18 +9,18 @@
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/WebGL/Extensions/EXTTextureNorm16.h>
#include <LibWeb/WebGL/OpenGLContext.h>
#include <LibWeb/WebGL/WebGL2RenderingContext.h>
#include <LibWeb/WebGL/WebGLRenderingContextBase.h>
namespace Web::WebGL::Extensions {
GC_DEFINE_ALLOCATOR(EXTTextureNorm16);
JS::ThrowCompletionOr<GC::Ptr<EXTTextureNorm16>> EXTTextureNorm16::create(JS::Realm& realm, GC::Ref<WebGL2RenderingContext> context)
JS::ThrowCompletionOr<GC::Ptr<EXTTextureNorm16>> EXTTextureNorm16::create(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
{
return realm.create<EXTTextureNorm16>(realm, context);
}
EXTTextureNorm16::EXTTextureNorm16(JS::Realm& realm, GC::Ref<WebGL2RenderingContext> context)
EXTTextureNorm16::EXTTextureNorm16(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
: PlatformObject(realm)
, m_context(context)
{