"GLGraphicsDriver failed to set display mode"error

BlitzMax Forums/BlitzMax Beginners Area/"GLGraphicsDriver failed to set display mode"error

Hey guys,

Well, this one has me really stumped. When I initialize my game as a window the game runs fine, i.e.:

Graphics 800,600, 0


On the other hand, when I try to run it in full screen, the BlitzMax IDE gives me the error "GLGraphicsDriver failed to set display mode".

Here is the code which I use to initialize it in full screen:

Graphics 800,600, 1


Anyone know what's going on?

Nevermind, this was the root of the problem:

SetGraphicsDriver GLMax2DDriver()


Any way to circumvent that?

The third parameter of Graphics is color depth and should be 0, 16 or 32 not 1.

Yeah. Your driver doesn't support monochrome displays. :o>

woops!

Wait. That doesnt make sense. When I get rid of:

SetGraphicsDriver GLMax2DDriver()


Then:

Graphics 800,600, 0


Runs the game in a window, and:

Graphics 800,600, 1


Runs my game in full screen mode.

It looks like the DirectX driver ignores the depth if it can't match it where as GL fails, will fix...

By "will fix" you mean that DX will fail too, right?