SetGraphicsDriver D3D7Max2DDriver() If Graphics(width,height,depth) = Null Then SetGraphicsDriver GLMax2DDriver() If Graphics(width,height,depth) = Null Then ' ' It just isn't going to run, sorry. ' EndIf EndIf
For what it's worth, I'm a Bmax noob and I'm finding out Bmax isn't compatible all the time with every cpu/gpu combination. You have to preapare for the worse with proper trapping and hope for the best.
Also, use () at the end of every function, it will cause conflicts down the road if you don't....... trust me. ;)
Fwiw, I'm also finding out Flip 1 helps compatibility issues. On one of my test computers I was getting all kinds of weird redraw until I used Flip 1. (Flips at the next vsync.)