OpenTK error, Unable to load DLL 'libGLES.dll


So I just got started with OpenTK, and have this code in a class that subclasses the GameWindow class:

protected override void OnRenderFrame(FrameEventArgs e)
    int val = (int)ClearBufferMask.ColorBufferBit;

On calling GL.Clear(val), I get the following exception:

An unhandled exception of type 'System.DllNotFoundException' occurred in OpenTK.dll
Additional information: Unable to load DLL 'libGLES.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I installed OpenTK using the nuget addon manager, and as a measure to try to solve this error I've downloaded the installer ( and tried installing it by that.

I will continue to try to find the issue tomorrow, if no one has any pointers by then I'll hopefully be able to add to the internet knowledge, Q & A style.

asked on Stack Overflow Dec 24, 2015 by Nattfrosten • edited May 27, 2019 by VBorisoff

1 Answer


I auto-added the reference using the ctrl + . command in vs, and didn't bother to check the namespace added.

The namespace added was using OpenTK.Graphics.ES10; (Embedded standard), I ofc wanted using OpenTK.Graphics.OpenGL;

Switching this reference solved the problem.

answered on Stack Overflow Dec 25, 2015 by Nattfrosten

User contributions licensed under CC BY-SA 3.0