From 412abd7389fa3d5329e986f47ff4e79a9b2f8c36 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 1 Nov 2003 06:50:12 +0000 Subject: [PATCH] add logging to RageDisplay_D3D::RageDisplay_D3D to try and find point of crash --- stepmania/src/RageDisplay_D3D.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index aff989c185..c87c6be503 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -230,9 +230,19 @@ RageDisplay_D3D::RageDisplay_D3D( VideoModeParams p ) throw RageException_D3DNotInstalled(); pDirect3DCreate8 = (Direct3DCreate8_t) GetProcAddress(g_D3D8_Module, "Direct3DCreate8"); + if(!pDirect3DCreate8) + { + LOG->Trace( "Direct3DCreate8 not found" ); + throw RageException_D3DNotInstalled(); + } #endif g_pd3d = pDirect3DCreate8( D3D_SDK_VERSION ); + if(!g_pd3d) + { + LOG->Trace( "Direct3DCreate8 failed" ); + throw RageException_D3DNotInstalled(); + } if( FAILED( g_pd3d->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &g_DeviceCaps) ) ) throw RageException_D3DNoAcceleration();