From 8e89512da7b19fa0fc3ecc13eaceaa8d7aa30bf1 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 13 Jul 2023 20:38:49 -0700 Subject: [PATCH] ui: use stencil buffer to draw polygons (#28902) * Update ui.cc * add a bunch of debugging stuff i don't want to lose * Revert "add a bunch of debugging stuff i don't want to lose" This reverts commit 2de6ab5b68bc528e913db68f7fe576b6ebe89a9b. * enable stencil buffer * lower ui CPU usage * Revert "lower ui CPU usage" This reverts commit 650241c0d89c1476de3995f1dc3f87f671dd1dd7. old-commit-hash: 936bfcd7bafbb9a102f726fe903c9aa9e46c4283 --- selfdrive/ui/qt/util.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/ui/qt/util.cc b/selfdrive/ui/qt/util.cc index 72bc07f27f..458d0be2fc 100644 --- a/selfdrive/ui/qt/util.cc +++ b/selfdrive/ui/qt/util.cc @@ -96,6 +96,7 @@ void setQtSurfaceFormat() { fmt.setRenderableType(QSurfaceFormat::OpenGLES); #endif fmt.setSamples(16); + fmt.setStencilBufferSize(1); QSurfaceFormat::setDefaultFormat(fmt); }