Fixed linux compat
This commit is contained in:
parent
89e47fa56c
commit
2aa836478e
2 changed files with 5 additions and 1 deletions
|
|
@ -42,6 +42,10 @@ public:
|
|||
// Save the contents to our strings
|
||||
vertexCode = vertexStream.str();
|
||||
fragmentCode = fragmentStream.str();
|
||||
|
||||
// Fix encoding issues, specifically for Linux
|
||||
vertexCode.erase(std::remove(vertexCode.begin(), vertexCode.end(), '\r'), vertexCode.end());
|
||||
fragmentCode.erase(std::remove(fragmentCode.begin(), fragmentCode.end(), '\r'), fragmentCode.end());
|
||||
}
|
||||
catch (std::ifstream::failure& e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue