Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

New Post: leak in GLSL shader...

$
0
0
This is most likely not related to VLD.
My educated guess is that the code in readShader reads more byte than m_shaderCodeLenght+1.
Anyway, I would suggest to not rely on char arrays when reading files and instead read into std::string and then get the char array from std::string::c_str as suggested in http://stackoverflow.com/a/2602060/600633

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>