Bug 647

Summary: SWT scrolling of GLCanvas doesn't work under Mac OS Mountain Lion
Product: [JogAmp] Jogl Reporter: samuel.gratzl
Component: macosxAssignee: Petros Koutsolampros <pjgl>
Status: CONFIRMED ---    
Severity: normal CC: gouessej, larsonm, sgothel
Priority: P4    
Version: 2.4.0   
Hardware: pc_x86_64   
OS: macosx   
Type: DEFECT SCM Refs:
Workaround: ---
Bug Depends on:    
Bug Blocks: 674    
Attachments: test classes for showing the bug
ScrolledComposite issues with multiple GLCanvas.
MacOSX bug view
Windows working view

Description samuel.gratzl 2012-12-01 14:31:17 CET
Created attachment 392 [details]
test classes for showing the bug

see also http://forum.jogamp.org/SWT-ScrolledComposite-not-working-under-Mac-Mountain-Lion-td4027271.html

I tested to wrap a com.jogamp.opengl.swt.GLCanvas with an org.eclipse.swt.custom.ScrolledComposite in order to create scrollbars if the window is too small. If you now moves the scrollbars the glcanvas window should also move. 

This works perfectly under Win 64 and Ubuntu 64 but not under Mac Mountain Lion. 

As an attachment there are three simple tests: 

The first wraps a SWT canvas with an scrolled composite to show what I expect. The other one uses a SWT GLCanvas, which should behave similarly. The last one uses the SWT-AWT bridge, but this doesn't work either. 

tested using jogl 2.0-rc11 with SWT from latest eclipse juno (org.eclipse.swt.cocoa.macosx.x86_64_3.100.1.v4234e.jar)
Comment 1 Matt Larson 2016-03-31 21:20:28 CEST
I was able to reproduce Samuel Gratzl's bug on MacOSX 10.10.3, while there is no issue under Windows7.

Additionally, I've found what I believe is a related issue.  On MacOSX 10.10.3 a ScrolledComposite that contains multiple GLCanvas each in Composite instances does not display correctly as well.

In this case, the individual GLCanvas views appear to render on each other.
Comment 2 Matt Larson 2016-03-31 21:23:53 CEST
Created attachment 776 [details]
ScrolledComposite issues with multiple GLCanvas.

The ScrollingMultiPane class demonstrates a broken behavior between jogamp 2.3.2 com.jogamp.opengl.swt.GLCanvas and SWT ScrolledComposite.

On Win7 this displays as three different color triangles each in 300x400 panes that can be vertically scrolled.

In MacOSX 10.10.3, the 3 views conflict with each other and display incorrectly when scrolled.
Comment 3 Matt Larson 2016-03-31 21:28:50 CEST
Created attachment 777 [details]
MacOSX bug view
Comment 4 Matt Larson 2016-03-31 21:29:19 CEST
Created attachment 778 [details]
Windows working view