Commit 17545eae by Geoff Lang Committed by Commit Bot

Vulkan: Initialize mReserved in SamplerDesc::update.

The other initailization path SamplerDesc::reset updates sets this value. Make sure it's initialized in all paths. BUG= chromium:1079398 Change-Id: Ia39722ec905e75483acde0907e891e68badfa9ad Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2189913Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 25e21f9f
...@@ -1770,6 +1770,8 @@ void SamplerDesc::update(const gl::SamplerState &samplerState, bool stencilMode) ...@@ -1770,6 +1770,8 @@ void SamplerDesc::update(const gl::SamplerState &samplerState, bool stencilMode)
mMinLod = 0.0f; mMinLod = 0.0f;
mMaxLod = 0.25f; mMaxLod = 0.25f;
} }
mReserved = 0;
} }
VkSamplerCreateInfo SamplerDesc::unpack(ContextVk *contextVk) const VkSamplerCreateInfo SamplerDesc::unpack(ContextVk *contextVk) const
......
Markdown is supported
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