Original message (verbatim)
Cannot getBase64 from WebGL Texture
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
Calling TextureManager.getBase64(key, frame) on a frame sourced from a RenderTexture or GLTexture, trying to export a base64 image.
Typical cause
That texture source lives in WebGL GPU memory and cannot be read back and base64-encoded directly like an Image, Canvas or Video; the code only warns and returns empty data.
Step-by-step fix
- Call getBase64 only on textures sourced from Image, Canvas or Video.
- To export a RenderTexture, first draw its content to a 2D Canvas, then encode the Canvas to base64.
- Do not encode screenshots from a WebGL texture; read it back to a bitmap first.
Source links
Per-entry sources and capture date are listed at /sources#P18.
Related errors
Related Phaser errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00