shawnscode / crayon

A small, portable and extensible game framework written in Rust.
Apache License 2.0
182 stars 9 forks source link

update_texture bail on out of bounds #75

Open yrns opened 5 years ago

yrns commented 5 years ago

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:

https://github.com/shawnscode/crayon/blob/85b27c48930e26d9baeac9143f56eab6b9420a6f/src/video/backends/gl/visitor.rs#L474

shawnscode commented 5 years ago

Thanks! It has been fixed in #77.