Login  Register

Reshape Problem using swt GLCanvas

classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
sam
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Reshape Problem using swt GLCanvas

sam
18 posts
hey all,

I use the com.jogamp.opengl.swt.GLCanvas class for embedding JOGL within my SWT application but I have an reshape Problem, as it doesn't send me all reshapes.

The bug seems to be in the method: updateSizeCheck, where the sendReshape flag will only be set if its an offscreen context. Moving the line outside of that if should fix the problem.

tested with 2.0-rc11
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Reshape Problem using swt GLCanvas

Sven Gothel
Administrator
2933 posts
On 11/28/2012 05:14 PM, samg [via jogamp] wrote:

> hey all,
>
> I use the /com.jogamp.opengl.swt.GLCanvas/ class for embedding JOGL within my
> SWT application but I have an reshape Problem, as it doesn't send me all
> reshapes.
>
> The bug seems to be in the method: /updateSizeCheck/, where the
> /sendReshape/ flag will only be set if its an offscreen context. Moving the
> line outside of that /if/ should fix the problem.
>
> tested with 2.0-rc11
Thank you very much, indeed .. this is a copy/paste error
of jogl commit 4dd44b985fe0541be3a3bcd9045d201ed3ca2cc5

Fixing that ..

~Sven



signature.asc (909 bytes) Download Attachment
sam
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Reshape Problem using swt GLCanvas

sam
18 posts
thx