Skip to content

Commit

Permalink
Vulkan: Tweak stencil value from clears.
Browse files Browse the repository at this point in the history
Both changes fix graphical artifacts in Final Fantasy 4.
  • Loading branch information
unknownbrackets committed Nov 12, 2017
1 parent 232e30f commit d4c345c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GPU/Vulkan/DrawEngineVulkan.cpp
Expand Up @@ -997,9 +997,7 @@ void DrawEngineVulkan::DoFlush() {
}
lastPipeline_ = pipeline;
}
if (result.setStencil)
dynState_.stencilRef = result.stencilValue;
ApplyDrawStateLate(renderManager, false, 0, pipeline->useBlendConstant);
ApplyDrawStateLate(renderManager, result.setStencil, result.stencilValue, pipeline->useBlendConstant);
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
lastPipeline_ = pipeline;
}
Expand Down

0 comments on commit d4c345c

Please sign in to comment.