From d2dacb1029c7f29755dee44c89fc195245caf555 Mon Sep 17 00:00:00 2001 From: Julien Ignace Date: Mon, 18 May 2020 10:38:36 +0200 Subject: [PATCH] Fixed API breakage. --- .../Runtime/Textures/RTHandleSystem.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.core/Runtime/Textures/RTHandleSystem.cs b/com.unity.render-pipelines.core/Runtime/Textures/RTHandleSystem.cs index 77e517d38b2..80b43911efb 100644 --- a/com.unity.render-pipelines.core/Runtime/Textures/RTHandleSystem.cs +++ b/com.unity.render-pipelines.core/Runtime/Textures/RTHandleSystem.cs @@ -143,7 +143,19 @@ public void ResetReferenceSize(int width, int height) /// Reference rendering width for subsequent rendering. /// Reference rendering height for subsequent rendering. /// Number of MSAA samples for multisampled textures for subsequent rendering. - public void SetReferenceSize(int width, int height, MSAASamples msaaSamples, bool reset = false) + public void SetReferenceSize(int width, int height, MSAASamples msaaSamples) + { + SetReferenceSize(width, height, msaaSamples, false); + } + + /// + /// Sets the reference rendering size for subsequent rendering for the RTHandle System + /// + /// Reference rendering width for subsequent rendering. + /// Reference rendering height for subsequent rendering. + /// Number of MSAA samples for multisampled textures for subsequent rendering. + /// If set to true, the new width and height will override the old values even if they are not bigger. + public void SetReferenceSize(int width, int height, MSAASamples msaaSamples, bool reset) { m_RTHandleProperties.previousViewportSize = m_RTHandleProperties.currentViewportSize; m_RTHandleProperties.previousRenderTargetSize = m_RTHandleProperties.currentRenderTargetSize;