diff --git a/src/rendering/gl/renderer/gl_renderbuffers.cpp b/src/rendering/gl/renderer/gl_renderbuffers.cpp index a54df1279..2ab12e44a 100644 --- a/src/rendering/gl/renderer/gl_renderbuffers.cpp +++ b/src/rendering/gl/renderer/gl_renderbuffers.cpp @@ -868,7 +868,7 @@ void GLPPRenderState::Draw() const PPTextureInput &input = Textures[index]; int filter = (input.Filter == PPFilterMode::Nearest) ? GL_NEAREST : GL_LINEAR; - int wrap = (input.Wrap == PPWrapMode::Clamp) ? GL_CLAMP : GL_REPEAT; + int wrap = (input.Wrap == PPWrapMode::Clamp) ? GL_CLAMP_TO_EDGE : GL_REPEAT; switch (input.Type) { diff --git a/src/rendering/vulkan/renderer/vk_postprocess.cpp b/src/rendering/vulkan/renderer/vk_postprocess.cpp index e0f489144..8716b8d38 100644 --- a/src/rendering/vulkan/renderer/vk_postprocess.cpp +++ b/src/rendering/vulkan/renderer/vk_postprocess.cpp @@ -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(); diff --git a/src/rendering/vulkan/renderer/vk_postprocess.h b/src/rendering/vulkan/renderer/vk_postprocess.h index ace4afdfe..a1b6b9e87 100644 --- a/src/rendering/vulkan/renderer/vk_postprocess.h +++ b/src/rendering/vulkan/renderer/vk_postprocess.h @@ -75,7 +75,7 @@ private: VulkanSampler *GetSampler(PPFilterMode filter, PPWrapMode wrap); - std::array, 16> mSamplers; + std::array, 4> mSamplers; std::map> mRenderPassSetup; std::unique_ptr mDescriptorPool; int mCurrentPipelineImage = 0;