Don't call updateGL directly.

This commit is contained in:
Leonardo Zide 2020-11-14 10:53:02 -08:00
parent 6579369e21
commit 0d155dd971
2 changed files with 2 additions and 7 deletions

View file

@ -31,7 +31,7 @@ void lcGLWidget::Redraw()
{
lcQGLWidget* Widget = (lcQGLWidget*)mWidget;
Widget->mUpdateTimer.start(0);
Widget->update();
}
void lcGLWidget::SetCursor(lcCursor CursorType)
@ -93,10 +93,7 @@ lcQGLWidget::lcQGLWidget(QWidget *parent, lcGLWidget *owner, bool IsView, bool I
widget = owner;
widget->mWidget = this;
mUpdateTimer.setSingleShot(true);
connect(&mUpdateTimer, SIGNAL(timeout()), this, SLOT(updateGL()));
widget->MakeCurrent();
makeCurrent();
if (gWidgetList.isEmpty())
{

View file

@ -27,8 +27,6 @@ public:
void SetPreviewPosition(const QRect& ParentRect);
QTimer mUpdateTimer;
protected:
void initializeGL() override;
void resizeGL(int Width, int Height) override;