
OpenGL Extensions test fails
Posted Friday, 13 November, 2009 - 23:04 by kanato| Project: | The Open Toolkit library |
| Version: | 1.0-beta-2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The OpenGL Extensions test fails on Windows and Mac OS X (X11 untested) with a "OpenTK.Graphics.GraphicsContextMissingException: No context is current in the calling thread."
Tested on 1.0 branch. (Is 0.9.x-dev the right version to submit the issue to?)


Comments
#1
I can fix this by adding control.MakeCurrent inside the using block in Extensions.StartAsync, however the background worker thread then gets a null reference exception due to the return value of delegates.GetField(f.EntryPoint) being null.
#2
I haven't had the time to look into the null reference exception yet, but I think this might be caused by the GL class no longer being static.
#3
Fixed in r2519 (the context is now made current and code is more defensive when loading entry points).
#4
Closing issues fixed in 1.0 beta-2.