nythrix's picture

get_CurrentContext() not found [solved]

Hi!
I get a MissingMethodException on GraphicsContext.CurrentContext. I'm running a base class constructor for GL resources which is very similar to this (see constructor). The context is valid yet I'm missing something probably. Any insight on why this happens? Will post code if needed.


Comments

Comment viewing options

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

Did you upgrade OpenTK recently? GraphicsContext.CurrentContext was modified to return an IGraphicsContext instead of a concrete GraphicsContext.

As the release notes mention, beta OpenTK builds are not binary-compatible with each other. Make sure you are using the same OpenTK.dll for all projects in your solution and simply clean & rebuild it. The error should go away.

nythrix's picture

Yep. Right there. Leftovers. And I thought, I replaced all of the dll's. Thank you.