Skip to main content
7 events
when toggle format what by license comment
Jan 29, 2015 at 2:24 comment added BWG @Boreal Shader compilers are pretty terrible, I guess the developers were lazy and instead of doing proper error checking, they just allow people to use incorrect shaders. It's super annoying, because if you change one thing tons of other unrelated stuff breaks.
Jan 29, 2015 at 0:19 vote accept user27886
Jan 29, 2015 at 0:19 comment added user27886 Thank you! You were right on. Those were some sloppy mistakes on my part. Thanks again. I included the picture for kicks just cause the colors were so vibrant (and stable too). :)
Jan 28, 2015 at 20:16 comment added user27886 Ah that's a good point. I'll try fixing that.
Jan 28, 2015 at 19:29 comment added jmegaffin One issue I can see is that you're using the internal pointer of a std::string that gets deallocated as soon as the function returns. This could have something to do with the garbage (which you see commonly with a string that for some reason isn't null-terminated).
Jan 28, 2015 at 7:44 comment added user27886 You were right about the flashing. The frag error looks right and makes sense, but something else is going on. I printed out the shaders, and there's a weird set of 2-3 characters at the end of each shader. Perhaps eol or some utf-8 character marking? I will post the shader loader code.
Jan 28, 2015 at 6:23 history answered jmegaffin CC BY-SA 3.0