From b5e04518052a887ab4b62347ca98a6bbf05e609f Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 14 Apr 2019 19:00:29 +0200 Subject: [PATCH] - change the wrap mode for custom textures in custom postprocess shaders to repeat --- src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp index e0de225dc..37db55ce9 100644 --- a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp +++ b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp @@ -950,7 +950,7 @@ void PPCustomShaderInstance::SetTextures(PPRenderState *renderstate) pptex = std::make_unique(buffer.mWidth, buffer.mHeight, PixelFormat::Rgba8, data); } - renderstate->SetInputTexture(textureIndex, pptex.get(), PPFilterMode::Linear); + renderstate->SetInputTexture(textureIndex, pptex.get(), PPFilterMode::Linear, PPWrapMode::Repeat); textureIndex++; } }