How do I use an RT Camera as a texture for a quad.

Title says it all, I’m trying to fix mahalis’s Portal Gun 0.97 to work on 64-bit systems but to no avail as when using GetRenderTarget on the RT and using that as a texture I get errors.