aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache/buffer_cache.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-10-18 15:37:37 -0400
committerLioncash <mathew1800@gmail.com>2022-10-18 16:06:50 -0400
commitd28572d4b811aba093e7b17127fa0e38a842a2c5 (patch)
tree4b8de4393bafeb6a8a8c61f66fbf6a1940630e06 /src/video_core/buffer_cache/buffer_cache.h
parent9cc623426507a783aac7c444d9acefec9d3800d4 (diff)
fixed_point: Mark default constructor as constexpr
Ensures that a fixed-point value is always initialized This likely also fixes several cases of uninitialized values being operated on, since we have multiple areas in the codebase where the default constructor is being used like: Common::FixedPoint<50, 14> current_sample{}; and is then followed up with an arithmetic operation like += or something else, which operates directly on FixedPoint's internal data member, which would previously be uninitialized.
Diffstat (limited to 'src/video_core/buffer_cache/buffer_cache.h')
0 files changed, 0 insertions, 0 deletions