diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 93da0601c..7defd7cc0 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -3104,7 +3104,7 @@ void TextureViewer::on_backcolorPick_clicked() QColor col = QColorDialog::getColor(Qt::black, this, tr("Choose background colour")); if(!col.isValid()) - col = QColor(0, 0, 0); + return; col = col.toRgb(); m_TexDisplay.darkBackgroundColor = m_TexDisplay.lightBackgroundColor =