GLcontrol error (resolved)

when open "w02_Immediat_Mode_Cube.cs" in example code,following error. opentk is download from SVN.

Could not create OpenGL render context (Wgl.CreateContext() return 0).
Hide    

at OpenTK.Platform.Windows.WinGLContext.CreateContext(Boolean direct, IGLContext source) in F:\DownProgram\3D\opentk\Source\OpenTK\Platform\Windows\WinGLContext.cs:line 83
at OpenTK.GLContext.CreateContext(Boolean direct, IGLContext source) in F:\DownProgram\3D\opentk\Source\OpenTK\GLContext.cs:line 144
at OpenTK.GLControl.CreateContext() in F:\DownProgram\3D\opentk\Source\OpenTK\GLControl.cs:line 206
at OpenTK.GLControl.OnHandleCreated(EventArgs e) in F:\DownProgram\3D\opentk\Source\OpenTK\GLControl.cs:line 63
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at OpenTK.GLControl..ctor(DisplayMode mode) in F:\DownProgram\3D\opentk\Source\OpenTK\GLControl.cs:line 53
at OpenTK.GLControl..ctor() in F:\DownProgram\3D\opentk\Source\OpenTK\GLControl.cs:line 33


Comments

This issue is what's holding
posted by the Fiddler

This issue is what's holding back the 0.3.14 release ;)

I'm working on it, it should be solved shortly. Thanks for reporting!

Corrected in SVN.
posted by the Fiddler

Corrected in SVN.

Who's online

There are currently 1 user and 4 guests online.

Online users

  • puklaus