Slighty improved render-to-texture, fixed warnings. Added quad buffer.