mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d8: Don't crash if d3d8 can't be loaded.
This commit is contained in:
parent
e55ed113fa
commit
7d0f8a32e2
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,8 @@ static void test_ValidatePixelShader(void)
|
|||
START_TEST(d3d8_main)
|
||||
{
|
||||
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
|
||||
if (!d3d8_handle)
|
||||
return;
|
||||
ValidateVertexShader = (void*)GetProcAddress (d3d8_handle, "ValidateVertexShader" );
|
||||
ValidatePixelShader = (void*)GetProcAddress (d3d8_handle, "ValidatePixelShader" );
|
||||
test_ValidateVertexShader();
|
||||
|
|
Loading…
Reference in a new issue