reactos/dll/directx
winesync 489e520163 [WINESYNC] d3dx9_36: Filter out D3DCompile warning messages that are not present with D3DCompileShader. (try 4)
This patch fixes vertex processing issue of bug 33770.

The problem comes from the fact that even if the call succeeds,
the game interprets a non null error_messages pointer as an error.

By calling D3DCompile we use a newer version of the compiler which is more
strict and generates the following warning.
  - warning X3206: 'dot': implicit truncation of vector type
  - warning X3206: implicit truncation of vector type
  - warning X3206: 'mul': implicit truncation of vector type
D3DCompileShader does not generate such warnings.

These is confirmed in the DX SDK release note:
New Warning X3206: Implicit Truncation of Vector Type
Beginning in the August 2009 release of the DirectX SDK, the compiler will warn
when an implicit truncation of a vector type occurs.

The warnings cannot be disable so this patch filters out these strings in D3DCompileShader
and reset the error messages pointer if the resulting buffer is empty.

Try 2:
  - only filter out lines containing "X3206:" in case d3dcompiler_43 has localization

Try 3:
  - use move in place instead of copying the buffer

Try 4:
  - filter simplification by Sebastian and remove 'mul' testing left-out in search string

wine-staging patch by Christian Costa <titan.costa@gmail.com>
2021-02-04 16:37:07 +01:00
..
bdaplgin [DLLs] Fix .spec files regarding OLE-specific exports. 2019-07-28 16:26:22 +02:00
d3d8
d3d8thk [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
d3d9 [D3D9][ARPING] Add missing va_start() and va_end() (#371) 2018-02-16 10:28:25 +01:00
ddraw [DSOUND_NEW][DDRAW] CMake fixes (#2389) 2020-03-06 19:09:28 +01:00
dsound_new [DSOUND_NEW][DDRAW] CMake fixes (#2389) 2020-03-06 19:09:28 +01:00
ksproxy [CMAKE] Get rid of the set_cpp macro 2020-10-20 21:44:54 +02:00
ksuser [KSUSER] Improve pointer arithmetics 2019-08-15 18:04:57 +02:00
msdvbnp [DLLs] Fix .spec files regarding OLE-specific exports. 2019-07-28 16:26:22 +02:00
msvidctl [BOOT][DIRECTX][SHELL32] Unneeded semicolons (trivial) (#3133) 2020-09-08 21:57:13 +02:00
wine [WINESYNC] d3dx9_36: Filter out D3DCompile warning messages that are not present with D3DCompileShader. (try 4) 2021-02-04 16:37:07 +01:00
CMakeLists.txt