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

Issue an error when map canvas is larger than allowed by gl.MAX_RENDERBUFFER_SIZE #2893

Closed
lucaswoj opened this issue Jul 19, 2016 · 8 comments · Fixed by #4037
Closed

Issue an error when map canvas is larger than allowed by gl.MAX_RENDERBUFFER_SIZE #2893

lucaswoj opened this issue Jul 19, 2016 · 8 comments · Fixed by #4037

Comments

@lucaswoj
Copy link
Contributor

Once the map canvas is larger than gl.MAX_RENDERBUFFER_SIZE / 2, scaling behaviour starts to occur. I do not think we should invest significant resources into accommodating this case.

See #2673 and #2863

@stepankuzmin
Copy link
Contributor

Hi @lucaswoj! I'd like to help with some issues at my spare time. Is it correct, that the Error need to be thrown when canvas.width or canvas.height is larger than gl.MAX_RENDERBUFFER_SIZE / 2 like this?

@lucaswoj
Copy link
Contributor Author

Thank you thank you thank you @stepankuzmin. 🙇

Your commit is on the right track. I'll leave my feedback as comments on that commit.

@stepankuzmin
Copy link
Contributor

I've made a PR.

lucaswoj pushed a commit that referenced this issue Dec 21, 2016
…RBUFFER_SIZE #2893 (#3841)

* Issue an error when map canvas is larger than allowed by gl.MAX_RENDERBUFFER_SIZE #2893

* add test case for #2893

* mention canvas size and gl.MAX_RENDERBUFFER_SIZE halving factor in the error message #2893
1ec5 added a commit that referenced this issue Jan 16, 2017
1ec5 added a commit that referenced this issue Jan 17, 2017
@1ec5
Copy link
Contributor

1ec5 commented Jan 17, 2017

This change was reverted in #3986 because it caused #3915 in Firefox. Reopening. Note that #2673 doesn’t seem to reproduce anymore: #3915 (comment).

@1ec5 1ec5 reopened this Jan 17, 2017
@kristfal
Copy link

Just wanted to add that this change broke iPhone (6,6s,7) Plus and iPads with Retina Display support when the map was initialized as a full screen map.

iOS have a MAX_RENDERBUFFER_SIZE of 4096, so please make sure that that it works with resolutions up and including 2732px.

@stepankuzmin
Copy link
Contributor

We still need to issue an error or not?

@lucaswoj
Copy link
Contributor Author

@stepankuzmin I'm going to add a warning message instead of an error. There are some systems in which we're firing an error and unnecessarily breaking functional maps.

@andrewharvey
Copy link
Collaborator

@lucaswoj I can no longer replicate the two original issues #2673 and #2863 when using 0.29.0. If others can confirm this, then I don't think we need a warning for gl.MAX_RENDERBUFFER_SIZE / 2.

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

Successfully merging a pull request may close this issue.

6 participants