No DX9??

BlitzMax Forums/BlitzMax Programming/No DX9??

GfK(Posted 2010) [#1]
Just a thought...

What happens if you try to use D3D9Max2DDriver() and DX9 isn't installed? Does it blow up in the user's face, or neatly fall back to DX7?

I don't have a non-DX9 PC to test this on.


ziggy(Posted 2010) [#2]
I have no idea, but I think you could mount a VMWare (or the like) XP setup to test it. That's what I do to test some BLIde changes and it's very helpful.


therevills(Posted 2010) [#3]
I would guess that is would crash.

You should check the driver first:

If D3D7Max2DDriver() Then
  Print "DirectX 7 Installed"
End If

If GLMax2DDriver() Then
  Print "OpenGL Installed"
End If

If D3D9Max2DDriver() Then
  Print "DirectX 9 Installed"
End If