I want force OpenGL 2.
in documentation
void | SetForceGL2 (bool enable) |
---|---|
Set forced use of OpenGL 2 even if OpenGL 3 is available. Must be called before setting the screen mode for the first time. Default false. No effect on Direct3D9 & 11. |
If I call SetForceGL2 inside setup before screen mode (as I guess it is here), program crash.
if I use
GetSubsystem<Graphics>()->SetForceGL2(true);
inside void Start() function. (If I add it in setup() or initial class function MyApp(){}, it compile without problem but after run program it crash.)
Program don’t crash, but I am not sure if OpenGL 2 is set up.
It is right what I am doing?