如何修复虚幻引擎4.11中的“断言失败”

问题描述 投票:0回答:1

构建全新源并运行 UE_4.11.0 全新安装后,它加载 100%,新项目创建 100%,但在将项目加载到 99% 时,它崩溃并出现错误。

日志:断言失败:!bSrcDepthWrite || bDstDepth写 [D:\UE4.11.0\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp [行:715]

D3D11Commands.cpp源代码

void FD3D11DynamicRHI::ValidateExclusiveDepthStencilAccess(FExclusiveDepthStencil RequestedAccess) const
{
    const bool bSrcDepthWrite = RequestedAccess.IsDepthWrite();
    const bool bSrcStencilWrite = RequestedAccess.IsStencilWrite();

    if (bSrcDepthWrite || bSrcStencilWrite)
    {
        // New Rule: You have to call SetRenderTarget[s]() before
        ensure(CurrentDepthTexture);

        const bool bDstDepthWrite = CurrentDSVAccessType.IsDepthWrite();
        const bool bDstStencilWrite = CurrentDSVAccessType.IsStencilWrite();

        // requested access is not possible, fix SetRenderTarget EExclusiveDepthStencil or request a different one
        check(!bSrcDepthWrite || bDstDepthWrite);  // Line: 715  
        check(!bSrcStencilWrite || bDstStencilWrite);
    }
}
c++ unreal-engine4
1个回答
0
投票

需要从目录 C:\Users\UserName\AppData\Local\UnrealEngine\EngineVersion 中删除所有内容

© www.soinside.com 2019 - 2024. All rights reserved.