CreateGraphics depth issue (Crash/Bug?)

BlitzMax Forums/BlitzMax Programming/CreateGraphics depth issue (Crash/Bug?)

Hezkore(Posted 2011) [#1]
Am I the only one that gets a segfault from this code?
SetGraphicsDriver GLMax2DDriver()
Global Graph:TGraphics = CreateGraphics(320, 240, 32, 60, GRAPHICS_BACKBUFFER)
SetGraphics(Graph)
Cls()
The issue seems to be the Depth parameter in CreateGraphics.
If you set Depth to 0, everything works just fine.


Warner(Posted 2011) [#2]
I tried it: when setting Depth to 60, it tries to go fullscreen. However 320x240 is not a supported resolution on my card, and it returns an error instead.