Skip to content

Plugin crashes during startup when -RHIValidation is enabled #17

@TBBle

Description

@TBBle

Observed in Unreal Engine 5.4 and 5.5; I haven't tested older versions to see how they differ.

When -RHIValidation is passed to the engine, the GDynamicRHI global variable points at a proxy RHI implementation.

However, the XeSS Unreal Plugin in several places tries to static_cast<...>(GDynamicRHI), which produces an invalid result and crashes when -RHIValidation is in-use.

Instead, I believe it is safe all the way back to 4.27 to use static_cast<...>(GDynamicRHI->GetNonValidationRHI()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions