Fix trace mode

by rendering to an fbo