mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb/WebGL: Implement OES_vertex_array_object extension
This commit is contained in:
committed by
Andreas Kling
parent
58942e1137
commit
442f0b9a13
@@ -14,6 +14,7 @@
|
||||
#include <LibWeb/Painting/Paintable.h>
|
||||
#include <LibWeb/WebGL/ANGLEInstancedArrays.h>
|
||||
#include <LibWeb/WebGL/EventNames.h>
|
||||
#include <LibWeb/WebGL/OESVertexArrayObject.h>
|
||||
#include <LibWeb/WebGL/OpenGLContext.h>
|
||||
#include <LibWeb/WebGL/WebGLContextEvent.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderingContext.h>
|
||||
@@ -176,6 +177,9 @@ JS::Object* WebGLRenderingContext::get_extension(String const& name)
|
||||
if (name == "ANGLE_instanced_arrays"sv) {
|
||||
return MUST(ANGLEInstancedArrays::create(realm()));
|
||||
}
|
||||
if (name == "OES_vertex_array_object"sv) {
|
||||
return MUST(OESVertexArrayObject::create(realm(), *this));
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user