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 snapshotFramebuffer cannot exceed the size of the drawingBuffer #5707

Closed
teng-z opened this issue May 20, 2021 · 1 comment
Closed

Comments

@teng-z
Copy link
Contributor

teng-z commented May 20, 2021

Version

  • Phaser Version: 3.23.0
  • Operating system: macOS
  • Browser: Google Chrome

Description

I have a renderTexture whose size exceeds Canvas. The width and height of the snapshot cannot exceed the drawingBuffer.

I tried to remove Math.min from snapshotArea. Get the effect I want, is there any hidden danger?
Is there a better solution?

Example Test Code

Additional Information

@photonstorm
Copy link
Collaborator

Agreed, this is fine to do here - I've moved the check to the snapshot function if the source is a frame buffer.

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

No branches or pull requests

2 participants