help with rendering to texture

Blitz3D Forums/Blitz3D Programming/help with rendering to texture

thanks jfk.
any comments on the code are welcome cause i have no clue if this is correct. it just works, mostly.