Login  Register

Re: GLWindow.setFullscreen(true) triggering multiple reshape events

Posted by Sven Gothel on Sep 29, 2012; 1:21am
URL: https://forum.jogamp.org/GLWindow-setFullscreen-true-triggering-multiple-reshape-events-tp4026307p4026311.html

On 09/28/2012 08:36 PM, Sven Gothel wrote:
> On 09/28/2012 06:35 PM, Mike [via jogamp] wrote:
>> Oh shit i meant to say reshape events, sorry about that. (I'm i little tired i
>> stayed up until 3am last night debugging this ;) ) My main concern is that i
>> re-initialize all my fbo's when a reshape occurs, so im trying to avoid having
>> redundant reshape events.
>

On 09/28/2012 06:16 PM, Sven Gothel wrote:> On 09/28/2012 06:03 PM, Mike [via jogamp] wrote:
> Ofc .. if you can proof we generate too many of these events ourselves,
> I am more than happy to fix it.

found one double GLEventListener.reshape() triggered by JOGL in case
GLEventListener.init() has to be called _and_ reshape was triggered.

GLEventListener.reshape() was always called @ init() processing,
which is required for all new GLEventListener and after disposal/recreation case.
However, our display() method also issued GLEventListener.reshape() is the flag is set.

Fix: <http://jogamp.org/git/?p=jogl.git;a=commit;h=4f8432b0a5ac2a030056884c8f6c877435aaf5c8>

Dunno whether this will reduce your 4-5 reshape events .. well :)

~Sven



signature.asc (907 bytes) Download Attachment