Hi,while testing codesamplers samples i found that www.codesampler.com/source/dx8_cg_vertex_displacement.zip<br>crashes in ValidateVertexShader(). I came across a mail from Oliver Stieber that stated that this functions takes 5, and not 4 parameters. Indeed the patch&nbsp; below fixes the crash (however the screen remains black, but i think that's another bug) Anyone knows exactly what this (undocumented) function takes as parameters?<br><br>diff --git a/dlls/d3d8/d3d8.spec b/dlls/d3d8/d3d8.spec<br>index bc82cd0..466b74c 100644<br>--- a/dlls/d3d8/d3d8.spec<br>+++ b/dlls/d3d8/d3d8.spec<br>@@ -2,4 +2,4 @@<br>&nbsp;@ stdcall DebugSetMute()<br>&nbsp;@ stdcall Direct3DCreate8(long)<br>&nbsp;@ stdcall ValidatePixelShader(ptr long long ptr)<br>-@ stdcall ValidateVertexShader(ptr long long ptr)<br>+@ stdcall ValidateVertexShader(ptr ptr ptr ptr ptr)<br>diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c<br>index b7627ab..9f47ae1 100644<br>--- a/dlls/d3d8/d3d8_main.c<br>+++
 b/dlls/d3d8/d3d8_main.c<br>@@ -73,11 +73,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL,<br>&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ValidateVertexShader (D3D8.@)<br>&nbsp; *<br>&nbsp; * PARAMS<br>- * toto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result?<br>+ *<br>&nbsp; */<br>-BOOL WINAPI ValidateVertexShader(LPVOID pFunction, int param1, int param2, LPVOID toto)<br>+BOOL WINAPI ValidateVertexShader(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5)<br>&nbsp;{<br>-&nbsp; FIXME("(%p %d %d %p): stub\n", pFunction, param1, param2, toto);<br>+&nbsp; FIXME("(%p %p %p %p %p): stub\n", x1, x2, x3, x4, x5);<br>&nbsp;&nbsp; return TRUE;<br>&nbsp;}<br><br><br><p>Send instant messages to your online friends http://uk.messenger.yahoo.com