Permalink
Browse files

Vulkan: Tweak stencil value from clears.

Both changes fix graphical artifacts in Final Fantasy 4.
  • Loading branch information...
unknownbrackets committed Nov 12, 2017
1 parent 232e30f commit d4c345c870ca3a1e444993e22f94703fdad5db43
Showing with 1 addition and 3 deletions.
  1. +1 −3 GPU/Vulkan/DrawEngineVulkan.cpp
@@ -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;
}

0 comments on commit d4c345c

Please sign in to comment.