Skip to content

Layer-backed macOS applications shouldn't override the rendering context.

There's been instances with layer-backed macOS applications where contexts (NSOpenGLContext) for views tries to render into the context-object (CGLContextObj) of another, which tends to arise when the context (NSOpenGLContext) gets overridden in the vtkCocoaRenderWindow 'InitializeFromCurrentContext()' function. The idea is to protect the integrity of the context to be rendered into from compromise by falling back onto the 'Superclass::InitializeFromCurrentContext()' instead.

(cherry picked from commit 7f214cf6)


Backported from !7423 (merged).

Cc: @seanm @SeunOdutola

Merge request reports