Add shader file as comment for easier debug

This commit is contained in:
Vincent Lejeune
2014-04-10 20:57:06 +02:00
parent 9ba636f661
commit 55097aba91

View File

@@ -229,6 +229,7 @@ GLuint LoadShader(const char * file, unsigned type)
sprintf(versionString, "#version %d\n", irr_driver->getGLSLVersion());
std::string Code = versionString;
std::ifstream Stream(file, std::ios::in);
Code += "//" + std::string(file) + "\n";
if (Stream.is_open())
{
std::string Line = "";