https://bugs.winehq.org/show_bug.cgi?id=33770
--- Comment #9 from Christian Costa titan.costa@gmail.com --- Hi Wylda, There are 2 graphical problems: the texture one and the vertex one. The message is related to the vertex problem. The patch fixes vertex related stuff. graphical To see the graphical difference, apply the patch below and do cp d3dx9_36.dll to d3dx9_36_2.dll. This will makes DTXTN textures work.
diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index d5c09a7..24ea367 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -185,7 +185,7 @@ @ stdcall D3DXLoadSurfaceFromFileA(ptr ptr ptr str ptr long long ptr) @ stdcall D3DXLoadSurfaceFromFileInMemory(ptr ptr ptr ptr long ptr long long ptr) @ stdcall D3DXLoadSurfaceFromFileW(ptr ptr ptr wstr ptr long long ptr) -@ stdcall D3DXLoadSurfaceFromMemory(ptr ptr ptr ptr long long ptr ptr long long) +@ stdcall D3DXLoadSurfaceFromMemory(ptr ptr ptr ptr long long ptr ptr long long) d3dx9_36_2.D3DXLoadSurfaceFromMemory @ stdcall D3DXLoadSurfaceFromResourceA(ptr ptr ptr ptr str ptr long long ptr) @ stdcall D3DXLoadSurfaceFromResourceW(ptr ptr ptr ptr wstr ptr long long ptr) @ stdcall D3DXLoadSurfaceFromSurface(ptr ptr ptr ptr ptr ptr long long) diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index 09c2fce..b632822 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -1731,7 +1731,7 @@ void point_filter_argb_pixels(const BYTE *src, UINT src_row_pitch, UINT src_slic * negative values for pSrcRect are allowed as we're only looking at the width and height anyway. * */ -HRESULT WINAPI D3DXLoadSurfaceFromMemory(IDirect3DSurface9 *dst_surface, +HRESULT WINAPI D3DXLoadSurfaceFromMemory_(IDirect3DSurface9 *dst_surface, const PALETTEENTRY *dst_palette, const RECT *dst_rect, const void *src_memory, D3DFORMAT src_format, UINT src_pitch, const PALETTEENTRY *src_palette, const RECT *src_rect, DWORD filter, D3DCOLOR color_key) diff --git a/dlls/d3dxof/d3dxof.spec b/dlls/d3dxof/d3dxof.spec index 2eee2fd..51739de 100644 --- a/dlls/d3dxof/d3dxof.spec +++ b/dlls/d3dxof/d3dxof.spec @@ -3,3 +3,6 @@ @ stdcall -private DllGetClassObject(ptr ptr ptr) @ stdcall -private DllRegisterServer() @ stdcall -private DllUnregisterServer() +@ stdcall D3DXLoadSurfaceFromMemory(ptr ptr ptr ptr long long ptr ptr long long) d3dx9_36.D3DXLoadSurfaceFromMemory +@ stdcall D3DXCompileShaderNative(ptr long ptr ptr str str long ptr ptr ptr) d3dx9_36_2.D3DXCompileShader +