CopyRect issue

Blitz3D Forums/Blitz3D Programming/CopyRect issue

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.

Hi,

I'm having trouble using CopyRect - copying a 3d render from the backbuffer to a texture.

So I'm doing :-

CopyRect 0,0, w, h, 0,0, BackBuffer(), TextureBuffer( tex )

It appears that nothing is being copied. I'm locking both the backbuffer and the texture buffer incase that's the issue. I've also tested the lock using a WritePixel on the texture buffer and this works fine.

What am I doing wrong?