UI: always clear CameraView background (#23231)

* fix background

* gate that with Hardware::EON

* always call glclear
old-commit-hash: 5810583d57
vw-mqb-aeb
Dean Lee 3 years ago committed by GitHub
parent 85ff2fe9cb
commit d5e9c7ecf1
  1. 9
      selfdrive/ui/qt/widgets/cameraview.cc

@ -199,11 +199,10 @@ void CameraViewWidget::updateFrameMat(int w, int h) {
} }
void CameraViewWidget::paintGL() { void CameraViewWidget::paintGL() {
if (latest_texture_id == -1) { glClearColor(bg.redF(), bg.greenF(), bg.blueF(), bg.alphaF());
glClearColor(bg.redF(), bg.greenF(), bg.blueF(), bg.alphaF()); glClear(GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
glClear(GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
return; if (latest_texture_id == -1) return;
}
glViewport(0, 0, width(), height()); glViewport(0, 0, width(), height());

Loading…
Cancel
Save