zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
41 stars 32 forks source link

Canvases are empty or black after moving #67

Closed zoglauer closed 3 years ago

zoglauer commented 3 years ago

Problem: When moving a canvas, the content switches to white or black and does not return when the move is finished.

Solution: The problem is related to the openGL acceleration of ROOT canvas drawing on some systems, e.g., Ubuntu 20.04 using Parallels on Mac. To solve the problem, please locate the file:

src/global/misc/src/MGlobal.cxx

comment out the line:

gStyle->SetCanvasPreferGL(true);

and then recompile MEGAlib.