mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Increase SkSurface's generation id when it's modified by WebGL
Skia is not aware of surface modifications done by WebGL, so we need to manually increase generation id whenver WebGL invokes a writing function.
This commit is contained in:
committed by
Alexander Kalenik
parent
e2e54dccc3
commit
46cbbda944
@@ -205,6 +205,10 @@ public:
|
||||
m_context->make_current();
|
||||
)~~~");
|
||||
|
||||
if (gl_function_modifies_framebuffer(function.name)) {
|
||||
function_impl_generator.append(" m_context->notify_content_will_change();\n"sv);
|
||||
}
|
||||
|
||||
Vector<ByteString> gl_call_arguments;
|
||||
for (size_t i = 0; i < function.parameters.size(); ++i) {
|
||||
auto const& parameter = function.parameters[i];
|
||||
|
||||
Reference in New Issue
Block a user