d3d8: Don't crash if d3d8 can't be loaded.
This commit is contained in:
parent
e55ed113fa
commit
7d0f8a32e2
|
@ -106,6 +106,8 @@ static void test_ValidatePixelShader(void)
|
||||||
START_TEST(d3d8_main)
|
START_TEST(d3d8_main)
|
||||||
{
|
{
|
||||||
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
|
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
|
||||||
|
if (!d3d8_handle)
|
||||||
|
return;
|
||||||
ValidateVertexShader = (void*)GetProcAddress (d3d8_handle, "ValidateVertexShader" );
|
ValidateVertexShader = (void*)GetProcAddress (d3d8_handle, "ValidateVertexShader" );
|
||||||
ValidatePixelShader = (void*)GetProcAddress (d3d8_handle, "ValidatePixelShader" );
|
ValidatePixelShader = (void*)GetProcAddress (d3d8_handle, "ValidatePixelShader" );
|
||||||
test_ValidateVertexShader();
|
test_ValidateVertexShader();
|
||||||
|
|
Loading…
Reference in New Issue