We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e0943 commit 9dbe170Copy full SHA for 9dbe170
1 file changed
Tutorial4_Shaders/OGL3D/source/OGL3D/Graphics/OShaderProgram.cpp
@@ -28,6 +28,7 @@ SOFTWARE.*/
28
#include <sstream>
29
#include <string>
30
#include <vector>
31
+#include <filesystem>
32
33
OShaderProgram::OShaderProgram(const OShaderProgramDesc& desc)
34
{
@@ -55,7 +56,10 @@ ui32 OShaderProgram::getId()
55
56
void OShaderProgram::attach(const wchar_t* shaderFilePath, const OShaderType& type)
57
58
std::string shaderCode;
- std::ifstream shaderStream(shaderFilePath);
59
+
60
+ auto path = std::filesystem::path(shaderFilePath);
61
62
+ std::ifstream shaderStream(path);
63
if (shaderStream.is_open())
64
65
std::stringstream sstr;
0 commit comments