错误信息在标题中。有谁知道怎么了?我想清除此警告。我一无所知。
const std::string loadShaderFromFile(std::string shaderFilePath) {
// load file
std::fstream shaderFile(shaderFilePath.c_str(), std::ios::in);
if(shaderFile.is_open()) {
// help store the files buffer?
std::stringstream shaderFileBuffer;
// get files data by streaming the files stream into our buffer stream.
shaderFileBuffer << shaderFile.rdbuf();
// buffer contains the files data
return shaderFileBuffer.str();
}
}