-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Canvas sources sized in exact powers of 2 (e.g. 512x512) render as black squares #9873
Labels
Comments
cc @ansis |
Thanks! |
Can we expect the resolution any time sooner? |
Debug for several nights and now I found this is an open issue... |
I found a workaround to this:
|
CaviarChen
added a commit
to CaviarChen/fog-machine
that referenced
this issue
Sep 6, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mapbox-gl-js version: starting from v0.50.0
browser: all
Steps to Trigger Behavior
Link to Demonstration
https://jsfiddle.net/rsh412/2exz0ukh/3/
Expected Behavior
https://jsfiddle.net/rsh412/wrtq3hpk/2/
Actual Behavior
The console shows many warnings
[.WebGL-0x7f9a73693000]RENDER WARNING: texture bound to texture unit 1 is not renderable. It might be non-power-of-2 or have incompatible texture filtering (maybe)?
for bothtexture unit 1
andtexture unit 0
.If you change the size of the canvas in the example from 256x256 to 256x257, the canvas renders as expected.
I tracked the introduction of the bug to 4e926e3.
The text was updated successfully, but these errors were encountered: