Skip to content

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 Mar 27, 2023
1 parent c53f425 commit 4b5b396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/obs/gs/gs-effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b5b396

Please sign in to comment.