WebGLRenderingContext: flush() method

The WebGLRenderingContext.flush() method of the WebGL API empties different buffer commands, causing all commands to be executed as quickly as possible.

Syntax

js
flush()

Parameters

None.

Return value

None (undefined).

Specifications

Specification
WebGL Specification
# 5.14.11

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
flush

See also