Detect DX9 and switch to it?

BlitzMax Forums/BlitzMax Programming/Detect DX9 and switch to it?

Can't you just try if it works, and fall back to the other if it doesn't? Something like what I do with OpenGL and DX7:

		SetGraphicsDriver GLMax2DDriver()
		gc = TMax2DGraphics(Graphics(GX, GY))
		
		If Not gc
			SetGraphicsDriver D3D7Max2DDriver()
			gc = TMax2DGraphics(Graphics(GX, GY))
		End If
		
		'If Not gc ...