UNPKG

@phaserjs/phaser

Version:
14 lines (13 loc) 274 B
import { Draw } from "./Draw"; export function Flush(renderPass, forceCount) { if (forceCount) { renderPass.count = forceCount; } const count = renderPass.count; if (count === 0) { return false; } Draw(renderPass); renderPass.flush(); return true; }