does CopyRect clip?

BlitzPlus Forums/BlitzPlus Programming/does CopyRect clip?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I know you dont pass a size for the destination buffer but what if the destination buffer isn't big enough to hold a complete copy of the source buffer, e.g.

...
tex = CreateTexture(128,128)
...
CopyRect 0,0,800,600,0,0,FrontBuffer(),TextureBuffer(tex)
...

Or, what I'm more interested in is what happens if you offset source rect in the dest rect, e.g.

...
tex = CreateTexture(800,600)
...
CopyRect 0,0,800,600,10,10,FrontBuffer(),TextureBuffer(tex)
...

Does the copy get clipped to the confines of the dest buffer or not. Anyone know?

Thanks