-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
texture atlas builder: use correct pixel size instead of 4 #2920
Conversation
Obviously it's possible to avoid this allocation, but it might need to change the interface of Alternatively, we could just have a static array of zeroes long enough and just slice into it. |
Today the max size is 16, but I suppose that could change and this would be forgotten. |
We could add a comment to the pixel_size function saying to check this method, or else make the pixel size a macro and have a way to get the largest one as a constant |
1 similar comment
We could add a comment to the pixel_size function saying to check this method, or else make the pixel size a macro and have a way to get the largest one as a constant |
using the |
Awesome, thanks! |
replaced by #2977 on pipelined rendering branch |
Objective
Solution