BackBufferToTex with mask?

BlitzMax Modules Forums/MiniB3D/BackBufferToTex with mask?

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.

Does anyone know of a way to create a masked texture (with flag=4), render to the texture with BackBufferToTex and have the mask preserved so that the texture is transparent for the color black when applied to an object?

I tried to modify the render to texture demo provided with MiniB3D, simply adding the flag 4 to the createtexture command does not work.

Any ideas?