rtt: only attach depth buffer if required
rtt: only attach depth buffer if required

Fixes regression introduced by 60efacb6d92dfeacf49844cd5a5550765cf679ce.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl