kapp
kapp copied to clipboard
Viewport size should be set when binding a window to a GLContext
Right now the viewport will be an incorrect value when a window is bound to a GLContext.
On Windows this manifests as the viewport size being 0,0 when a window is bound, because the dummy window used to initialize the context had a size of 0,0.
A solution would be to get the window size and perform a call to viewport when the window is bound to the context.
This would mean that the window size would need to be queried and the "viewport" function would need to be loaded.