mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
LibAccelGfx: Update scissor test after switching between painters
Since scissor clip rect is a part of OpenGL global state we need to update it after switching between painters.
This commit is contained in:
parent
72f5461af4
commit
a88807e5b3
1 changed files with 1 additions and 0 deletions
|
@ -604,6 +604,7 @@ void Painter::bind_target_canvas()
|
|||
{
|
||||
m_target_canvas->bind();
|
||||
GL::set_viewport({ 0, 0, m_target_canvas->size().width(), m_target_canvas->size().height() });
|
||||
GL::enable_scissor_test(state().clip_rect);
|
||||
}
|
||||
|
||||
void Painter::set_target_canvas(NonnullRefPtr<Canvas> canvas)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue