mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
obs/gs/effect: Revert #836
The use of const references breaks '#include' for relative paths.
This commit is contained in:
parent
6e1566386e
commit
808f5c63fb
1 changed files with 3 additions and 3 deletions
|
@ -29,9 +29,9 @@
|
|||
|
||||
static std::string load_file_as_code(const std::filesystem::path& shader_file, bool is_top_level = true)
|
||||
{
|
||||
std::stringstream shader_stream;
|
||||
const std::filesystem::path& shader_path = std::filesystem::absolute(shader_file);
|
||||
const std::filesystem::path& shader_root = std::filesystem::path(shader_path).remove_filename();
|
||||
std::stringstream shader_stream;
|
||||
const std::filesystem::path shader_path = std::filesystem::absolute(shader_file.native());
|
||||
const std::filesystem::path shader_root = std::filesystem::path(shader_path.native()).remove_filename();
|
||||
|
||||
// Ensure it meets size limits.
|
||||
uintmax_t size = std::filesystem::file_size(shader_path);
|
||||
|
|
Loading…
Reference in a new issue