LibWeb/WebGL: Implement texStorage2D()

This commit is contained in:
Aliaksandr Kalenik
2024-12-10 10:29:32 +01:00
committed by Alexander Kalenik
parent cfff38a176
commit 897883f947
Notes: github-actions[bot] 2024-12-13 08:20:08 +00:00
2 changed files with 8 additions and 1 deletions

View File

@@ -527,6 +527,13 @@ public:
continue;
}
if (function.name == "texStorage2D") {
function_impl_generator.append(R"~~~(
glTexStorage2D(target, levels, internalformat, width, height);
)~~~");
continue;
}
if (function.name == "texImage2D"sv && function.overload_index == 0) {
function_impl_generator.append(R"~~~(
void const* pixels_ptr = nullptr;