Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iv): avoid crash with OpenGL + multi-channel images (#4087)
For image with more than 4 channels, we were misallocating the OpenGL buffer by using the total channels instead of the 4 we wanted to create the texture out of. Also, make sure the calculation usees wide types to avoid possible integer overflow. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information