From: Tim Clem tclem@codeweavers.com
Doing so results in a Metal assertion on newer OSes. --- dlls/winemac.drv/cocoa_opengl.m | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/winemac.drv/cocoa_opengl.m b/dlls/winemac.drv/cocoa_opengl.m index ea00f95ff68..3e5f682613a 100644 --- a/dlls/winemac.drv/cocoa_opengl.m +++ b/dlls/winemac.drv/cocoa_opengl.m @@ -94,12 +94,16 @@ - (void) resetSurfaceIfBackingSizeChanged } }
+ /* This is a no-op if either dimension of the size is zero. */ - (void) wine_updateBackingSize:(const CGSize*)size { GLint enabled;
if (size) { + if (size->width == 0 || size->height == 0) + return; + if (CGLIsEnabled(self.CGLContextObj, kCGLCESurfaceBackingSize, &enabled) != kCGLNoError) enabled = 0;