diff --git a/shaders/glsl.cpp b/shaders/glsl.cpp index effffb40..b7906afd 100644 --- a/shaders/glsl.cpp +++ b/shaders/glsl.cpp @@ -312,7 +312,7 @@ void GLSLShader::read_shader_file_with_includes(std::string filename, std::vector &lines, int p) { - std::ifstream ss(filename); + std::ifstream ss(filename.c_str()); if (ss.fail()) {