Page 1 of 1

Missing output of shader source in Hlms::_compileShaderFromPreprocessedSource

Posted: Sun Jun 09, 2024 10:11 pm
by bishopnator

Ogre version 2.3.4 (Daedalus)

If Ogre::Hlms::mDebugOutput is set to true (through Hlms::setDebugOutputPath), the shader code is node written to the output file in Hlms::_compileShaderFromPreprocessedSource. Writing of source[ i ] is missing there which led to empty files (or only the properties/pieces are written).

Code: Select all

debugDumpFile.write(source[i].c_str(), source[i].size());

Image


Re: Missing output of shader source in Hlms::_compileShaderFromPreprocessedSource

Posted: Wed Jun 12, 2024 12:00 am
by dark_sylinc

That bug has been bothering me for years but I never took the time to look into it.

Thanks!

Pushed your fix.