From 6310ea46e3e95a6b9afa545e53d599ff54ec44d6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 23 Mar 2022 16:38:09 -0700 Subject: [PATCH] fix dummy ssr history texture target type --- filament/src/PostProcessManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/filament/src/PostProcessManager.cpp b/filament/src/PostProcessManager.cpp index 073d306346..ca402f97f6 100644 --- a/filament/src/PostProcessManager.cpp +++ b/filament/src/PostProcessManager.cpp @@ -545,9 +545,11 @@ FrameGraphId PostProcessManager::ssr(FrameGraph& fg, mat4f uvFromViewMatrix = uvFromClipMatrix * cameraInfo.projection; mat4f reprojection = uvFromClipMatrix * historyProjection * inverse(cameraInfo.view * cameraInfo.worldOrigin); + + // the history sampler is a regular texture2D TextureHandle history = data.history ? - resources.getTexture(data.history) : getZeroTextureArray(); - uniforms.prepareHistorySSR(history,reprojection, uvFromViewMatrix,options); + resources.getTexture(data.history) : getZeroTexture(); + uniforms.prepareHistorySSR(history, reprojection, uvFromViewMatrix,options); uniforms.commit(driver);