
Application always run in windowed mode when using shared contexts
Posted Monday, 9 November, 2009 - 17:22 by ebeckers| Project: | The Open Toolkit library |
| Version: | 1.0-beta-2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If you create a new thread which uses shared context ( in my case it is reponsible for texture loading )
then the main GameWindow won't run in fullscreen mode anymore.
It always runs in windowed mode


Comments
#1
Thanks.
Debug output from previous thread:
I can reproduce this issue using the new "multithreading" example, investigating.
#2
Should be fixed in rev. 2487, can you please test?
The issue was that there were Xlib calls that were not protected with XLockDisplay/XUnlockDisplay, which presumably caused corruption in the X command stream when using multiple threads.
There's an open question whether GLX calls should be protected like this (right now they aren't ). I haven't been able to find any clear documentation on this issue.
#3
#4
Tested it, but i see nothing different.
Main window still runs in windowed mode and window border is visible:
I found a workaround by calling:
WindowBorder=WindowBorder.Hidden;
WindowState=WindowState.Fullscreen;
ProcessEvents();
just before the GameWindow.Run() call
#5
Can you please test the "Multithreading" sample in Examples.exe -> OpenTK? Select any window and press spacebar - does it become fullscreen?
If it does become fullscreen, can you please post a short test case that reproduces the issue for you?
#6
I am marking this as fixed (works on my test systems). If this is still an issue in 1.0 beta-2, please reopen the bug.
#7
Closing issues fixed in 1.0 beta-2.