revert to old opengl setup until I find a way to check if a variable exists