Skip to content
Snippets Groups Projects
Commit d4577ca2 authored by Simon McVittie's avatar Simon McVittie
Browse files

check-vulkan: Don't assume SRT_DATA_PATH ends with a slash

parent 3dd6599b
No related branches found
No related tags found
1 merge request!76Fix check-vulkan when installed to final location
......@@ -474,13 +474,11 @@ private:
shadersPath = argv0;
size_t lastSlash = shadersPath.rfind('/');
if (lastSlash != std::string::npos)
{
shadersPath.resize(lastSlash + 1);
}
shadersPath.resize(lastSlash);
}
auto vertShaderCode = readFile(shadersPath + "vert.spv");
auto fragShaderCode = readFile(shadersPath + "frag.spv");
auto vertShaderCode = readFile(shadersPath + "/vert.spv");
auto fragShaderCode = readFile(shadersPath + "/frag.spv");
VkShaderModule vertShaderModule = createShaderModule(vertShaderCode);
VkShaderModule fragShaderModule = createShaderModule(fragShaderCode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment