raw-gl-context
raw-gl-context copied to clipboard
Resizing window in macOS seems to not update the drawing area
When I run the winit example and resize the window on macOS it looks like this:
I bumped winit to 0.24 to fix build errors. The same behavior occurs on an M1 Mac mini and a 2018 intel MBP. When running the example on windows, the pink area being cleared does extend to the full size of the window
Is this known or expected? I noticed that glutin
does resize the drawing area when the window is resized. The main difference I've seen is that in their code they create a NSOpenGLContext
and this crate create a NSOpenGLView
. However, I know very little about OpenGL. (More familiar with vulkan and metal.) Hoping you will have an idea! I would like to use your crate since it's quite a bit slimmer and works with raw-window-handle
.
#8 fixes this for me