Skip to content

Fix use of renderWindow returned by CreateLookingGlassRenderWindow on macOS #11

@jcfr

Description

@jcfr

Due to an issue in upstream VTK preventing windows with negative position from being used, the looking glass renderwindow created on macOS does not appear on the hardware display but instead is shown on the main screen.

Similar problem has been fixed for Linux and Windows in https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7271 but we still need to address the problem with the underlying Rendering/OpenGL2/vtkCocoaRenderWindow.mm

To test potential fixes, you may run the command line associated with "TestDragon" test and specify -I.

I tried to comment these lines without success:
https://gitlab.kitware.com/vtk/vtk/-/blob/36f8256268614a24efcb6c5c90e6fcf7104b3ff9/Rendering/OpenGL2/vtkCocoaRenderWindow.mm#L830-837

It may be worth looking into commenting the whole block:
https://gitlab.kitware.com/vtk/vtk/-/blob/36f8256268614a24efcb6c5c90e6fcf7104b3ff9/Rendering/OpenGL2/vtkCocoaRenderWindow.mm#L821-845

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions