I was following this example, but I always encounter an error about invalid scissor. I just found out the problem was the rect was overflowing the surface bound. I guess the example need to be updated so no one will stumble upon my same exact problem.
I was following this example, but I always encounter an error about invalid scissor. I just found out the problem was the rect was overflowing the surface bound. I guess the example need to be updated so no one will stumble upon my same exact problem.
https://github.com/PistonDevelopers/conrod/blob/master/backends/conrod_wgpu/examples/all_winit_wgpu.rs#L247
more or less, it can be rewritten into
It should be clamped to the surface size