diff options
author | Roland Scheidegger <[email protected]> | 2018-01-25 04:30:41 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-01-25 18:03:38 +0100 |
commit | 4fe662c58f6453b3558de479e7c2bfe4158dc26c (patch) | |
tree | 79f264110474ff396e9a93f532fc9d8ab860998a /include/c99_compat.h | |
parent | 57223fb07af4e1666e54eff4755795dc5941c7b7 (diff) |
gallivm: fix crash with seamless cube filtering with different min/mag filter
We are not allowed to modify the incoming coords values, or things may
crash (as we may be inside a llvm conditional and the values may be used
in another branch).
I recently broke this when fixing an issue with NaNs and seamless cube
map filtering, and it causes crashes when doing cubemap filtering
if the min and mag filters are different.
Add const to the pointers passed in to prevent this mishap in the future.
Fixes: a485ad0bcd ("gallivm: fix an issue with NaNs with seamless cube filtering")
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'include/c99_compat.h')
0 files changed, 0 insertions, 0 deletions