Okay, then let's get cracking!

With what error message does it crash? Are you sure you are not reading past the array bounds? Might there be any SIMD alignment issues at work (I see that pssm_texscale() returns statically allocated memory and I don't know how good the Lite-C compiler is in regards to alignment rules... I know for a fact that it doesn't care about padding)

In short, more source code please with declaration of all relevant variables!


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com