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

Placing an image at atlas fails sometimes. #76

Open
slobodin opened this issue Jun 10, 2016 · 0 comments
Open

Placing an image at atlas fails sometimes. #76

slobodin opened this issue Jun 10, 2016 · 0 comments

Comments

@slobodin
Copy link

Consider a bitmap with width equal to 1024.
Suppose, in TBBitmapFragmentManager::CreateNewFragment we fail to allocate this image in an existing atlas. So, we create a new atlas with width equal to nearest power of 2 of 1024 (which is 1024). So, we creating new TBBitmapFragmentMap and trying to place new bitmap into it (fm->CreateNewFragment). But this function adds a border of 2 pixels by default, so we fail to place new image here and the function returns null. As a result image is not displayed.

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

No branches or pull requests

1 participant