Black Screen of Death & OpenGL Question

BlitzMax Forums/BlitzMax Beginners Area/Black Screen of Death & OpenGL Question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.)