Phaser API Documentation

  Version: 
refresh()

Description:

This should be called manually if you are running under WebGL. It will refresh the WebGLTexture from the Canvas source. Only call this if you know that the canvas has changed, as there is a significant GPU texture allocation cost involved in doing so.

Returns:
Description:

This CanvasTexture.

Since: 3.7.0