Hi,while testing codesamplers samples i found that www.codesampler.com/source/dx8_cg_vertex_displacement.zip 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 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?
diff --git a/dlls/d3d8/d3d8.spec b/dlls/d3d8/d3d8.spec index bc82cd0..466b74c 100644 --- a/dlls/d3d8/d3d8.spec +++ b/dlls/d3d8/d3d8.spec @@ -2,4 +2,4 @@ @ stdcall DebugSetMute() @ stdcall Direct3DCreate8(long) @ stdcall ValidatePixelShader(ptr long long ptr) -@ stdcall ValidateVertexShader(ptr long long ptr) +@ stdcall ValidateVertexShader(ptr ptr ptr ptr ptr) diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c index b7627ab..9f47ae1 100644 --- a/dlls/d3d8/d3d8_main.c +++ b/dlls/d3d8/d3d8_main.c @@ -73,11 +73,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, * ValidateVertexShader (D3D8.@) * * PARAMS - * toto result? + * */ -BOOL WINAPI ValidateVertexShader(LPVOID pFunction, int param1, int param2, LPVOID toto) +BOOL WINAPI ValidateVertexShader(LPVOID x1, LPVOID x2, LPVOID x3, LPVOID x4, LPVOID x5) { - FIXME("(%p %d %d %p): stub\n", pFunction, param1, param2, toto); + FIXME("(%p %p %p %p %p): stub\n", x1, x2, x3, x4, x5); return TRUE; }
Send instant messages to your online friends http://uk.messenger.yahoo.com