kapp icon indicating copy to clipboard operation
kapp copied to clipboard

Viewport size should be set when binding a window to a GLContext

Open kettle11 opened this issue 3 years ago • 0 comments

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.

kettle11 avatar Apr 23 '21 00:04 kettle11