mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Make WebGL extensions creation agnostic of WebGL version
This commit is contained in:
committed by
Jelle Raaijmakers
parent
502f2618aa
commit
5a029b4533
Notes:
github-actions[bot]
2026-03-11 19:21:54 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/5a029b4533c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8285 Reviewed-by: https://github.com/gmta ✅
@@ -9,18 +9,18 @@
|
||||
#include <LibWeb/Bindings/OESStandardDerivativesPrototype.h>
|
||||
#include <LibWeb/WebGL/Extensions/OESStandardDerivatives.h>
|
||||
#include <LibWeb/WebGL/OpenGLContext.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderingContext.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderingContextBase.h>
|
||||
|
||||
namespace Web::WebGL::Extensions {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(OESStandardDerivatives);
|
||||
|
||||
JS::ThrowCompletionOr<GC::Ptr<OESStandardDerivatives>> OESStandardDerivatives::create(JS::Realm& realm, GC::Ref<WebGLRenderingContext> context)
|
||||
JS::ThrowCompletionOr<GC::Ptr<OESStandardDerivatives>> OESStandardDerivatives::create(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
|
||||
{
|
||||
return realm.create<OESStandardDerivatives>(realm, context);
|
||||
}
|
||||
|
||||
OESStandardDerivatives::OESStandardDerivatives(JS::Realm& realm, GC::Ref<WebGLRenderingContext> context)
|
||||
OESStandardDerivatives::OESStandardDerivatives(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context)
|
||||
: PlatformObject(realm)
|
||||
, m_context(context)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user