Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _codeql_detected_source_root
5 changes: 3 additions & 2 deletions src/shader_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ std::string readShaderSource(const std::string &filename) {
spdlog::error("Failed to open shader source file: {}", filename);
return "";
}
return std::string((std::istreambuf_iterator<char>(file)),
std::istreambuf_iterator<char>());
std::stringstream buffer;
buffer << file.rdbuf();
return buffer.str();
}

// Apply our template to the shader which includes things
Expand Down
Loading