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);