Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix staging buffer required size calculation (fixes #1056)
The required staging buffer size is already properly calculated in prepare_staging_buffers(). Whenever a resize was needed, this value got overwritten by set_required_staging_buffer_size_to_max(), which computed the wrong (smaller) size. This in turn prevented the staging buffers from being resized in resize_staging_buffer(). By removing set_required_staging_buffer_size_to_max() entiery, the value from prepare_staging_buffers() is used.
- Loading branch information