Skip to content

Commit

Permalink
pass std::string to shader constructor
Browse files Browse the repository at this point in the history
might be causing Windows client not to build. for some reason I was
converting it to c_str before
  • Loading branch information
atar13 committed Apr 30, 2024
1 parent 675bcef commit 758ef8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool Client::init() {

boost::filesystem::path vertFilepath = this->root_path / "src/client/shaders/shader.vert";
boost::filesystem::path fragFilepath = this->root_path / "src/client/shaders/shader.frag";
this->cubeShader = std::make_shared<Shader>(vertFilepath.c_str(), fragFilepath.c_str());
this->cubeShader = std::make_shared<Shader>(vertFilepath.string(), fragFilepath.string());

boost::filesystem::path playerModelFilepath = this->root_path / "src/client/models/bear-sp22.obj";
this->playerModel = std::make_unique<Model>(playerModelFilepath.string());
Expand Down

0 comments on commit 758ef8e

Please sign in to comment.