[Bug 3837] X2: The Threat crashes with vertex shaders enabled

Wine Bugs wine-bugs at winehq.org
Thu Sep 7 15:50:41 CDT 2006


http://bugs.winehq.org/show_bug.cgi?id=3837





------- Additional Comments From xerox_xerox2000 at yahoo.co.uk  2006-07-09 15:50 -------
Created an attachment (id=3561)
 --> (http://bugs.winehq.org/attachment.cgi?id=3561&action=view)
test based om current "implementation" of Validatevertexshader

test is based on current implementation of Validatevertexshader:


#include <d3d8.h>
#include "wine/test.h"

static BOOL (WINAPI *ValidateVertexShader)(LPVOID,int,int,LPVOID);

static void test_ValidateVertexShader(void)
{
BOOL ret;
ret=ValidateVertexShader(0,0,0,1);
ok(ret==1,"ValidateVertexShader returned %d but expected 1\n",ret);
}

START_TEST(d3d8_main)
{
    HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
    ValidateVertexShader = (void*)GetProcAddress (d3d8_handle,
"ValidateVertexShader" );
    test_ValidateVertexShader();
}

Results: passes in wine ('wine d3d8_crosstest4.exe d3d8_main'), crashes with
native d3d8.dll and i guess on windows too(' WINEDLLOVERRIDES="d3d8=n" wine
d3d8_crosstest d3d8_main')

I hope these 2 tests make it a bit more assumable that ValidateVertexShader
takes 5 instead of 4 parameters (unless i did something horribly wrong ;))

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list