mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-25 07:52:03 +08:00
UI: always clear CameraView background (#23231)
* fix background * gate that with Hardware::EON * always call glclear
This commit is contained in:
@@ -199,11 +199,10 @@ void CameraViewWidget::updateFrameMat(int w, int h) {
|
||||
}
|
||||
|
||||
void CameraViewWidget::paintGL() {
|
||||
if (latest_texture_id == -1) {
|
||||
glClearColor(bg.redF(), bg.greenF(), bg.blueF(), bg.alphaF());
|
||||
glClear(GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
|
||||
return;
|
||||
}
|
||||
glClearColor(bg.redF(), bg.greenF(), bg.blueF(), bg.alphaF());
|
||||
glClear(GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
|
||||
|
||||
if (latest_texture_id == -1) return;
|
||||
|
||||
glViewport(0, 0, width(), height());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user