LWJGL
June 19, 2013, 23:22:53 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Window doesn't respond after context switch  (Read 1550 times)
Tiamat
Newbie
*
Posts: 3



« on: August 19, 2009, 12:39:37 »

Hi,

I'm creating a display on the Main-Thread and then create a new thread for the gameloop. Prior to starting the gameloop thread, main releases the display context and the gameloop thread grabs the context just before entering the loop.

This worked just fine. However, now creating a Keyboard or a Mouse in either the Main- or the gameloop thread, causes the Window not to respond anymore. No keyboard, mouse or isCloseRequested events are processed anymore. If I click into the window a few times or drag it with the mouse, it gets a "[Not responding]" message in the title.

The only way to work around this, is to call the Display.create() in the gameloop thread and have no context switch at all.

Is there a bug in the context-switching or am I doing something wrong?
Logged

I wipe the silver bullet tears, and with every tear a dream. With every tear a dream.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!