Metric / Materia

An open source alternative to Substance Designer written in C#
MIT License
329 stars 28 forks source link

Exception thrown: 'OpenTK.Graphics.GraphicsContextException' in OpenTK.dll An unhandled exception of type 'OpenTK.Graphics.GraphicsContextException' occurred in OpenTK.dll Requested GraphicsMode not available. SetPixelFormat error: 2000 #2

Closed TheWhirlingWhiteWizard closed 5 years ago

TheWhirlingWhiteWizard commented 5 years ago

Hello, when I try to build this using Visual Studio I get the following Error:

Exception thrown: 'OpenTK.Graphics.GraphicsContextException' in OpenTK.dll An unhandled exception of type 'OpenTK.Graphics.GraphicsContextException' occurred in OpenTK.dll Requested GraphicsMode not available. SetPixelFormat error: 2000

Is this the result of an incorrectly referenced OpenTK, and if so, how do I fix this?

CarstenZarbock commented 5 years ago

in InitGL() change the GraphicsMode to

glview = new TK.GLControl(GraphicsMode.Default);

TheWhirlingWhiteWizard commented 5 years ago

Thank You, This was the solution.