mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-25 09:52:05 +08:00
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: 936bfcd7ba
This commit is contained in:
@@ -96,6 +96,7 @@ void setQtSurfaceFormat() {
|
||||
fmt.setRenderableType(QSurfaceFormat::OpenGLES);
|
||||
#endif
|
||||
fmt.setSamples(16);
|
||||
fmt.setStencilBufferSize(1);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user