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

Fix bug viewport bug in RenderTextureWebGLRender #3480

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ntrrgc
Copy link
Contributor

@ntrrgc ntrrgc commented Apr 29, 2017

GL viewport did not account for content scale factor, which also resulted in a wrong projection.

For instance, this screenshot was taken with contentScaleFactor = 2. The RenderTexture node has a red clear color to make it easy to distinguish from the rest of the scene. It should contain a screenshot of the rest of the nodes. However, instead of them being centered, as in the real scene, they only use one quadrant in the screenshot. This PR fixes that bug.

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

Successfully merging this pull request may close these issues.

1 participant