
OpenTK can sometimes fail to share contexts
Posted Friday, 18 June, 2010 - 01:10 by kring789| Project: | The Open Toolkit library |
| Version: | 1.0-2010-10-06 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
If the first context created gets garbage collected without being disposed, newly created contexts will not be shared. The problem is that a WeakReference is used to store references to contexts in the 'available_contexts' list, but the WeakReference's Target property is not checked for null in GraphicsContext.FindSharedContext. A patch that fixes the problem is attached.
| Attachment | Size |
|---|---|
| GraphicsContext.patch | 680 bytes |


Comments
#1
Thanks for the patch, this is now fixed in the 1.0 branch, r2708.
#2
Closing issues fixed in opentk-1.0-2010-10-06 release.
#3