summaryrefslogtreecommitdiffstats
path: root/include/c99_compat.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2018-01-25 04:30:41 +0100
committerRoland Scheidegger <[email protected]>2018-01-25 18:03:38 +0100
commit4fe662c58f6453b3558de479e7c2bfe4158dc26c (patch)
tree79f264110474ff396e9a93f532fc9d8ab860998a /include/c99_compat.h
parent57223fb07af4e1666e54eff4755795dc5941c7b7 (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