A simple fix for bug #41. Not sure if this is the right way to do it though.
Automatically set texture repeat state every time a texture is being rendered. This should avoid some artifacts on surface borders when clamping is the desired option (repeating had been hardcoded until now).