xenia icon indicating copy to clipboard operation
xenia copied to clipboard

VS2022 compiler bug/undefined behavior with GetDepthControlForCurrentEdramMode

Open gibbed opened this issue 2 years ago • 0 comments

The call in GetHostViewportInfo to GetDepthControlForCurrentEdramMode where it checks .z_enable of the result generates broken code in MSVC v19.30 (VS2022). It generates correct code on v19.29 (VS2019).

Relevant godbolt with the isolated code: https://godbolt.org/z/6aG8e8qMr

gibbed avatar Jan 29 '22 18:01 gibbed