mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Fix fb resolve offset
gl_FragCoord is read in the fs shader, so we need to take into account the dstOffset here! This was causing the offset to be doubled rather than eliminated for the resolves for refractive water in Serious Sam 2 as srcOffset == dstOffset. Fixes #1637
This commit is contained in:
parent
8e7df31878
commit
9a40c1e6ae
@ -3352,8 +3352,8 @@ namespace dxvk {
|
||||
|
||||
// Perform the actual resolve operation
|
||||
VkOffset2D srcOffset = {
|
||||
region.srcOffset.x,
|
||||
region.srcOffset.y };
|
||||
region.srcOffset.x - region.dstOffset.x,
|
||||
region.srcOffset.y - region.dstOffset.y };
|
||||
|
||||
m_cmd->cmdBeginRenderPass(&info, VK_SUBPASS_CONTENTS_INLINE);
|
||||
m_cmd->cmdBindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeInfo.pipeHandle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user