This reverts commit d64b1221c6. While this prevents the crash, offscreen renders still aren't working right.
d64b1221c6