Fix regression.

VBOs weren't flushed before returning from core.