Fix crash in non-buffered rendering.