GL commands safe in DX?

BlitzMax Forums/BlitzMax Programming/GL commands safe in DX?

Who was John Galt?(Posted 2007) [#1]
I have some old code that uses a few GL functions... this was when Max was GL only. It still runs in DX mode, without the GL commands appearing to do anything. Is it safe to leave those commands in when using DX? (They add a couple of fancy effects to a Max2D intro screen)


ImaginaryHuman(Posted 2007) [#2]
If it runs and doesnt crash you should be ok. Some functions might throw up an exception if GL is not initialized properly, but most things just return errors.


Who was John Galt?(Posted 2007) [#3]
Well as long as it seems okay, i'll take the lazy option! Cheers