Vulkan: When deriving stencilref from color, don't forget to update the value.

Plus minor cleanups.
This commit is contained in:
Henrik Rydgård committed 2017-11-12 19:33:21 +01:00
1 parent ac78b908d3
commit 232e30f4db
4 files changed
+4 -4

No files matched your search

+2
View File
@@ -997,6 +997,8 @@ void DrawEngineVulkan::DoFlush() {
}
lastPipeline_ = pipeline;
}
if (result.setStencil)
dynState_.stencilRef = result.stencilValue;
ApplyDrawStateLate(renderManager, false, 0, pipeline->useBlendConstant);
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
lastPipeline_ = pipeline;