Commit 6a01d6e
D3D12 GPU: Prevent reading out of bounds when uploading textures.
When the upload needs realignment, a new buffer is created to do the
upload, and the source data is copied to the new buffer. This commit
fixes the issue where the memcopy can read off the end of the source
buffer since it is reading based on destination pitch instead of source
pitch.1 parent 1fb663b commit 6a01d6e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5941 | 5941 | | |
5942 | 5942 | | |
5943 | 5943 | | |
5944 | | - | |
| 5944 | + | |
5945 | 5945 | | |
5946 | 5946 | | |
5947 | 5947 | | |
| |||
0 commit comments