mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 06:12:11 +08:00
UI: always clear CameraView background (#23231)
* fix background * gate that with Hardware::EON * always call glclear old-commit-hash: 5810583d573af004120e6339a5597bf39cd6d331
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