https://bugs.winehq.org/show_bug.cgi?id=57748
Bug ID: 57748 Summary: #include w/o newline makes no effect Product: vkd3d Version: 1.14 Hardware: x86-64 OS: MacOS Status: UNCONFIRMED Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: igelbox@gmail.com
STALKER Anomaly Custom game fails to launch due to shader compilation errors: 1. Expected T_NEWLINE, example: ``` //================================================================================================= #include "pbr_settings.h" //load settings files #define PI 3.14159265359 ``` 2 The "tonemap_srgb.h" did't included at all when it locates at the eof without a trailing newline: ``` // some srgb.h file content #include "tonemap_srgb.h" ``` so the error is `vkd3d:05f4:trace:vkd3d_shader_compile :800:16: E5005: Function "tonemap_sRGB" is not defined.` but it actually is in the "tonemap_srgb.h" file