Don't check pointer before to delete it
This commit is contained in:
parent
fab764f6c6
commit
a1609d452a
1 changed files with 1 additions and 2 deletions
|
@ -465,8 +465,7 @@ void ShowFpsEffect::paintFPSText(int fps)
|
|||
painter.setFont(textFont);
|
||||
painter.setPen(textColor);
|
||||
painter.drawText(QRect(0, 0, 100, 100), textAlign, QString::number(fps));
|
||||
if (fpsText)
|
||||
delete fpsText;
|
||||
delete fpsText;
|
||||
fpsText = new GLTexture(im);
|
||||
fpsText->bind();
|
||||
if (ShaderManager::instance()->isValid()) {
|
||||
|
|
Loading…
Reference in a new issue