"GLGraphicsDriver failed to set display mode"error

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

Bukky(Posted 2006) [#1]
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?


Bukky(Posted 2006) [#2]
Nevermind, this was the root of the problem:

SetGraphicsDriver GLMax2DDriver()


Any way to circumvent that?


skidracer(Posted 2006) [#3]
The third parameter of Graphics is color depth and should be 0, 16 or 32 not 1.


FlameDuck(Posted 2006) [#4]
Yeah. Your driver doesn't support monochrome displays. :o>


Bukky(Posted 2006) [#5]
woops!


Bukky(Posted 2006) [#6]
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.


skidracer(Posted 2006) [#7]
It looks like the DirectX driver ignores the depth if it can't match it where as GL fails, will fix...


FlameDuck(Posted 2006) [#8]
By "will fix" you mean that DX will fail too, right?