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

update_texture bail on out of bounds #75

Open
yrns opened this issue Mar 4, 2019 · 1 comment
Open

update_texture bail on out of bounds #75

yrns opened this issue Mar 4, 2019 · 1 comment

Comments

@yrns
Copy link

yrns commented Mar 4, 2019

I'm not sure this check works since data is in bytes and area is pixels, unless I'm using it wrong. It appears to work if I remove the check, however:

if data.len() > area.volume() as usize

@shawnscode
Copy link
Owner

Thanks! It has been fixed in #77.

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

2 participants