Commit d9463f45 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

vk_pipeline_cache: Fix unintentional memcpy into optional

The intention behind this was to assign a float to from an uint32_t, but
it was unintentionally being copied directly into the std::optional.

Copy to a temporary and assign that temporary to std::optional. This can
be replaced with std::bit_cast<float> once we are in C++20.
parent 5ed13304
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment