The answer is, you can't - you have to use bglCreateContext. Unfortunately this also means that you can't use some of the Max features mechanism.
Actually, what you could do (and this would be an almighty hacky way of doing things) is something like:
That way you might be able to hang on to Max2D while being able to use the depth buffer. But as I said, it's one hell of a hack if it even works.
Actually, what you could do (and this would be an almighty hacky way of doing things) is something like:
Graphics width, height, depth, hertz ' Grab the actual width, height, depth and screen hertz Graphics has generated bglDeleteContext bglCreateContext width, height, depth, hertz, flags ' Set the viewport etc.
That way you might be able to hang on to Max2D while being able to use the depth buffer. But as I said, it's one hell of a hack if it even works.