Don't hide RWs on GL if there are no subroutines

This commit is contained in:
baldurk
2017-05-10 12:18:16 +01:00
parent 007e0f7b40
commit 5b384f3c4a
@@ -1039,7 +1039,7 @@ void GLPipelineStateViewer::setShaderState(const GLPipe::Shader &stage, QLabel *
readwrites->setUpdatesEnabled(true);
readwrites->verticalScrollBar()->setValue(vs);
readwrites->parentWidget()->setVisible(!stage.Subroutines.empty());
readwrites->parentWidget()->setVisible(readwrites->invisibleRootItem()->childCount() > 0);
}
QString GLPipelineStateViewer::MakeGenericValueString(uint32_t compCount, CompType compType,