not-fl3 / quad-gl

11 stars 1 forks source link

No way to delete pipeline from PipelinesStorage #1

Open zotho opened 4 years ago

zotho commented 4 years ago

Trying to autocompile shader once it edited in shadertoy example. After 32 updates process panicked with error:

thread 'main' panicked at 'index out of bounds: the len is 32 but the index is 32', /home/zotho/.cargo/registry/src/github.com-1ecc6299db9ec823/quad-gl-0.2.2/src/lib.rs:285:9

In this place: https://github.com/not-fl3/quad-gl/blob/master/src/lib.rs#L285

You can reproduse this error just by clicking Update button 32 times in shadertoy example of macroquad

not-fl3 commented 4 years ago

Thanks for report Yeah, this looks bad!