Apply clamp and wrap to tex projection as well.

Not sure if this is the correct method or not, since it doesn't really
work properly right now.
Merge pull request #6251 from unknownbrackets/framebuf-clamp

Apply clamp and wrap to tex projection as well