- change the wrap mode for custom textures in custom postprocess shaders to repeat

This commit is contained in:
Magnus Norddahl 2019-04-14 19:00:29 +02:00
parent b8dfb3c136
commit b5e0451805

View file

@ -950,7 +950,7 @@ void PPCustomShaderInstance::SetTextures(PPRenderState *renderstate)
pptex = std::make_unique<PPTexture>(buffer.mWidth, buffer.mHeight, PixelFormat::Rgba8, data);
}
renderstate->SetInputTexture(textureIndex, pptex.get(), PPFilterMode::Linear);
renderstate->SetInputTexture(textureIndex, pptex.get(), PPFilterMode::Linear, PPWrapMode::Repeat);
textureIndex++;
}
}