Commit 42232ab
committed
Fix VkFence destruction crashing on Windows
vk::destroy was crashing for vk::Fence after:
https://swiftshader-review.googlesource.com/c/SwiftShader/+/31988
Reverted that change and fixed it in VkObject.cpp to make sure the
result of the cast is always equal to the allocated memory.
Bug: b/117835459
Change-Id: I831625418fc83503329e833d48d9765b75d83b80
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31990
Tested-by: Alexis Hétu <[email protected]>
Presubmit-Ready: Alexis Hétu <[email protected]>
Reviewed-by: Antonio Maiorano <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Kokoro-Presubmit: kokoro <[email protected]>1 parent a71a1db commit 42232ab
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments