Hello! I have an issue where I try to scale the GUI of my application using Desktop::getInstance()::setGlobalScaleFactor(float newScaleFactor),
and it works fine with the software renderer. When using the OpenGL renderer it all gets messed up. The main component gets renderer at the bottom left corner but the input is based on the top left corner which leaves a long black stripe where the component was supposed to be zoomed.
I gave it another try. Think I found the cause for this problem.
You have to create an OpenGlContext before creating the main window. Attach the window when / after creating it to the already existing OpenGLContext. Then you may change scale, as you like.
Tested @ Windows 8.1
Even creating OpenGLContext first does not work either (I had a bug that prevented attaching the opengl context, so th sw renderer was used and it looked good, which was not the case).
Are you sure you don't mean that you should set the scale before creating the window? The order in which the window and context are created shouldn't make any difference.