GuillermoGarces's picture

OpenGLES 2.0 example does not work

I had the example working with the last official release ... but I needed the latest paches.

Now I have the Rev. 3067 and I having this error:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[OpenTK.ContextHandle,System.WeakReference].get_Item (ContextHandle key) [0x00000] in :0
at OpenTK.Graphics.GraphicsContext.get_CurrentContext () [0x0003d] in /mnt/hgfs/Leaf/Repositorio/OpenTkDev - Linux/Source/OpenTK/Graphics/GraphicsContext.cs:344
at OpenTK.Graphics.GraphicsContext.LoadAll () [0x00000] in /mnt/hgfs/Leaf/Repositorio/OpenTkDev - Linux/Source/OpenTK/Graphics/GraphicsContext.cs:490
at OpenTK.GameWindow..ctor (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, System.String title, GameWindowFlags options, OpenTK.DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext) [0x00151] in /mnt/hgfs/Leaf/Repositorio/OpenTkDev - Linux/Source/OpenTK/GameWindow.cs:208
Window destroyed

I think that the error is throw in:
OpenTK.Platform.DisplayDeviceBase.GetDisplay(DisplayIndex index)

It happens also on windows plattform.