From 55c483b7630c730027bd234bf1d65fde4c5ab6fb Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 16 Dec 2023 14:24:49 +0100 Subject: [PATCH] LibAccelGfx: Add missing `bind_target_canvas()` in `Painter::clear()` --- Userland/Libraries/LibAccelGfx/Painter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibAccelGfx/Painter.cpp b/Userland/Libraries/LibAccelGfx/Painter.cpp index 05b2ff825ca..6b46a75a7d0 100644 --- a/Userland/Libraries/LibAccelGfx/Painter.cpp +++ b/Userland/Libraries/LibAccelGfx/Painter.cpp @@ -193,6 +193,7 @@ Painter::~Painter() void Painter::clear(Gfx::Color color) { + bind_target_canvas(); GL::clear_color(color); }