mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +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:
committed by
Alexander Kalenik
parent
e5d59a2d42
commit
71746c47c2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user