(Qt) Attempted fix for Qt

This commit is contained in:
twinaphex 2020-07-06 19:27:05 +02:00
parent 83038ed4f7
commit 3ad0187012
1 changed files with 6 additions and 0 deletions

View File

@ -657,6 +657,12 @@ void ShaderParamsDialog::onShaderAddPassClicked()
if (path.isEmpty())
return;
/* Qt uses '/' as a directory separator regardless
* of host platform. Have to convert to native separators,
* or video_shader_resolve_parameters() will fail on
* non-Linux platforms */
path = QDir::toNativeSeparators(path);
pathArray = path.toUtf8();
pathData = pathArray.constData();