Fix offscreen rendering on linux.
Merge branch 'offscreenRendering'

* offscreenRendering:
  Fix offscreen rendering on linux.