raw-gl-context icon indicating copy to clipboard operation
raw-gl-context copied to clipboard

Resizing window in macOS seems to not update the drawing area

Open aclysma opened this issue 3 years ago • 1 comments

When I run the winit example and resize the window on macOS it looks like this:

image

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.

aclysma avatar Apr 04 '21 04:04 aclysma

#8 fixes this for me

aclysma avatar Apr 04 '21 05:04 aclysma