Quick Vulkan crashfix

This commit is contained in:
Henrik Rydgård 2020-08-22 10:50:39 +02:00
parent bf18817fe4
commit d465ce5123
2 changed files with 3 additions and 0 deletions

View file

@ -682,6 +682,7 @@ void FramebufferManagerCommon::DrawPixels(VirtualFramebuffer *vfb, int dstX, int
DrawActiveTexture(dstX, dstY, width, height, vfb->bufferWidth, vfb->bufferHeight, u0, v0, u1, v1, ROTATION_LOCKED_HORIZONTAL, flags);
gpuStats.numUploads++;
pixelsTex->Release();
draw_->InvalidateCachedState();
gstate_c.Dirty(DIRTY_BLEND_STATE | DIRTY_RASTER_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
}

View file

@ -332,6 +332,8 @@ void GPU_Vulkan::EndHostFrame() {
drawEngine_.EndFrame();
framebufferManagerVulkan_->EndFrame();
textureCacheVulkan_->EndFrame();
draw_->InvalidateCachedState();
}
// Needs to be called on GPU thread, not reporting thread.