d3d8: Don't crash if d3d8 can't be loaded.

This commit is contained in:
Mike McCormack 2006-10-07 00:49:03 +09:00 committed by Alexandre Julliard
parent e55ed113fa
commit 7d0f8a32e2
1 changed files with 2 additions and 0 deletions

View File

@ -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();