Skip to content

WebGL incomplete attachment error on small window #5563

@orjandh

Description

@orjandh

Version

  • Phaser Version: 3.52.0
  • Operating system: Windows 10
  • Browser: Chrome 88.0.4324.150

Description

When using the resize scaling mode and resizing the window so that the height is as small as possible, the webgl context crashes and the page has the be refreshed.

Uncaught Error: Framebuffer status: Incomplete Attachment
    at WebGLRenderer.createFramebuffer (webpack-internal:///./node_modules/phaser/dist/phaser.js:81321)
    at RenderTarget.resize (webpack-internal:///./node_modules/phaser/dist/phaser.js:35256)
    at UtilityPipeline.resize (webpack-internal:///./node_modules/phaser/dist/phaser.js:12199)
    at WebGLRenderer.emit (webpack-internal:///./node_modules/phaser/dist/phaser.js:1923)
    at WebGLRenderer.resize (webpack-internal:///./node_modules/phaser/dist/phaser.js:80263)
    at WebGLRenderer.onResize (webpack-internal:///./node_modules/phaser/dist/phaser.js:80186)
    at ScaleManager.emit (webpack-internal:///./node_modules/phaser/dist/phaser.js:1930)
    at ScaleManager.refresh (webpack-internal:///./node_modules/phaser/dist/phaser.js:96556)
    at ScaleManager.step (webpack-internal:///./node_modules/phaser/dist/phaser.js:97128)
    at EventEmitter.emit (webpack-internal:///./node_modules/phaser/dist/phaser.js:1923)

Example Test Code

The code can be found at https://github.com/orjandh/phaser3-project-template.

Additional Information

lJBvUSjePR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions