Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RenderTexture] Invoke renderTexture.stamp() method under scene.create() #6616

Closed
rexrainbow opened this issue Sep 12, 2023 · 1 comment
Closed

Comments

@rexrainbow
Copy link
Contributor

Version

  • Phaser Version: v3.61.0-beta.2
  • Operating system: win11
  • Browser: chrome

Description

Test code : Invoke renderTexture.stamp() method under scene.create()

Case 1, do noting in preload : Rise error Uncaught TypeError: Cannot read properties of undefined (reading 'setCrop') , see console
Case 2, load assets in preload (open comment at line 9): renderTexture.stamp() works fine.

It seems that texture.stamp is created too late in case 1.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants