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 2de6ab5b68.

* enable stencil buffer

* lower ui CPU usage

* Revert "lower ui CPU usage"

This reverts commit 650241c0d8.
old-commit-hash: 936bfcd7ba
beeps
Shane Smiskol 2 years ago committed by GitHub
parent 10a58a18ff
commit 8e89512da7
  1. 1
      selfdrive/ui/qt/util.cc

@ -96,6 +96,7 @@ void setQtSurfaceFormat() {
fmt.setRenderableType(QSurfaceFormat::OpenGLES); fmt.setRenderableType(QSurfaceFormat::OpenGLES);
#endif #endif
fmt.setSamples(16); fmt.setSamples(16);
fmt.setStencilBufferSize(1);
QSurfaceFormat::setDefaultFormat(fmt); QSurfaceFormat::setDefaultFormat(fmt);
} }

Loading…
Cancel
Save