kanato's picture

OpenGL Extensions test fails

Project:The Open Toolkit library
Version:1.0-beta-2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kanato's picture

#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.

the Fiddler's picture

#2

Status:open» confirmed

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.

the Fiddler's picture

#3

Status:confirmed» fixed

Fixed in r2519 (the context is now made current and code is more defensive when loading entry points).

the Fiddler's picture

#4

Version:0.9.x-dev» 1.0-beta-2
Status:fixed» closed

Closing issues fixed in 1.0 beta-2.