Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It's not an exact duplicate, but you might find this answer helpful: stackoverflow.com/questions/2795044/… Commented May 27, 2010 at 17:24
  • are you free() -ing your data anywhere after loadFileRaw()? Unless I'm missing something, I see a memory leak. Commented May 28, 2010 at 10:23
  • I was planning to cache or display the shader source code somewhere if the compiling fails, but I don't currently have a logger sophisticated enough to do that in a format which is easy to read. I was aware of needing to free the data though, but once that test compile fails you toss all other things aside to find the problem. Commented May 28, 2010 at 15:44