(Qt) Attempted fix for Qt
This commit is contained in:
parent
83038ed4f7
commit
3ad0187012
|
@ -657,6 +657,12 @@ void ShaderParamsDialog::onShaderAddPassClicked()
|
||||||
if (path.isEmpty())
|
if (path.isEmpty())
|
||||||
return;
|
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();
|
pathArray = path.toUtf8();
|
||||||
pathData = pathArray.constData();
|
pathData = pathArray.constData();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue