Use release on render state instead of using endframe.

You can now apply a new effect without releasing the previous render
state if you want to