mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb/WebGL: Bind default frame/render buffer when binding is null
This fixes the depth issues on github.com, as the depth commands are now sent to the right frame/render buffer.
This commit is contained in:
parent
e5d59a2d42
commit
71746c47c2
Notes:
github-actions[bot]
2025-01-08 14:56:38 +00:00
Author: https://github.com/Lubrsi
Commit: 71746c47c2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2943
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 23 additions and 2 deletions
|
@ -203,6 +203,24 @@ RefPtr<Gfx::PaintingSurface> OpenGLContext::surface()
|
|||
return m_painting_surface;
|
||||
}
|
||||
|
||||
u32 OpenGLContext::default_renderbuffer() const
|
||||
{
|
||||
#ifdef AK_OS_MACOS
|
||||
return m_impl->depth_buffer;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 OpenGLContext::default_framebuffer() const
|
||||
{
|
||||
#ifdef AK_OS_MACOS
|
||||
return m_impl->framebuffer;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
Vector<StringView> s_available_webgl_extensions {
|
||||
// Khronos ratified WebGL Extensions
|
||||
"ANGLE_instanced_arrays"sv,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue