Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
obs/gs/effect: Revert #836
Browse files Browse the repository at this point in the history
The use of const references breaks '#include' for relative paths.
  • Loading branch information
Xaymar committed Aug 19, 2022
1 parent 3a79b1b commit 5da167e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/obs/gs/gs-effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
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();
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);
Expand Down

0 comments on commit 5da167e

Please # to comment.