- fix wrong clamp mode used in OpenGL

- fix sampler array size on Vulkan
This commit is contained in:
Magnus Norddahl 2019-04-20 19:19:34 +02:00
commit 09883431bf
3 changed files with 3 additions and 3 deletions

View file

@ -287,7 +287,7 @@ void VkPostprocess::RenderBuffersReset()
VulkanSampler *VkPostprocess::GetSampler(PPFilterMode filter, PPWrapMode wrap)
{
int index = (((int)filter) << 2) | (int)wrap;
int index = (((int)filter) << 1) | (int)wrap;
auto &sampler = mSamplers[index];
if (sampler)
return sampler.get();