mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Only set WA_PaintOnScreen when doing custom painting
This commit is contained in:
@@ -33,7 +33,6 @@ CustomPaintWidget::CustomPaintWidget(QWidget *parent) : QWidget(parent)
|
||||
m_Ctx = NULL;
|
||||
m_Output = NULL;
|
||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
setAttribute(Qt::WA_PaintOnScreen);
|
||||
setMouseTracking(true);
|
||||
}
|
||||
|
||||
@@ -42,7 +41,8 @@ CustomPaintWidget::CustomPaintWidget(CaptureContext *c, QWidget *parent) : QWidg
|
||||
m_Ctx = c;
|
||||
m_Output = NULL;
|
||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
setAttribute(Qt::WA_PaintOnScreen);
|
||||
if(c)
|
||||
setAttribute(Qt::WA_PaintOnScreen);
|
||||
setMouseTracking(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user