I'm trying to implement a simple particle system under DX9 using point sprites. Everything works perfect when I'm building in Debug configuration. However, when building under Release, the application doesn't look the way it's supposed to: it looks as if the sprites are not lit (maybe I'm wrong?)
Here is the debug version: http://corner.dark.am/files/debug.rar
and here is the release version: http://corner.dark.am/files/release.rar
Compare. I've been cracking my head all day long on this problem now.. If someone would help, that'd be greatly appreciated.
Thanks a lot, Cambo_frog, I really appreciate your assistance!
The reason why my application looked different in Debug and Release is because of a silly bug in my code: my vertex structure didn't match my FVF declaration. I had declared the FVF as D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1, however in my vertex structure I also had RHW, which I forgot to delete after deleting it from the FVF. After removing it from the vertex declaration everything started to work smooth and fine. I met a couple of other guys online who had the same problem, so I hope that maybe this to some extent may be helpful for them as well.
By the way, here is the link to the resulting particle fire :) it's my first ever particle app's first alpha, so don't be too harsh :) Thanks again!