Fixing Emitter frame index bug on hardware rendering mode.

When you reach the edge of the texture, you should immediately move down to the next row, not wait until you're past the edge. This was causing emitter bugs on hardware rendering mode which are now fixed.