migueltk's picture

glDepthRangef() EntryPointNotFoundException in the DLL file opengl32.dll

Project:The Open Toolkit library
Category:bug report

Hi, ...

I found this error, the system is:

OpenTK from SVN
Windows 7 (32 bit)
OpenGL version: 2.1.2 NVIDIA 173.14.28
OpenGL renderer: GeForce FX 5200/AGP/SSE2

As I read online that the error is that this function "glDepthRangef " should be used in a " OpenGL ES " context and not a desktop context.

Any solution?


Comment viewing options

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


Status:open» by design

There are two versions of glDepthRange:

  • glDepthRange, which has been available since OpenGL 1.1.
  • glDepthRangef, which requires OpenGL 4.1 or ARB_ES2_compatibility.

(The documentation tooltips list which version/extension each function requires).

Your card supports only the first overload. To call it, use double parameters rather than float:

GL.DepthRange(0.0, 1.0);
migueltk's picture


It works, thanks

migueltk's picture


Status:by design» closed

status closed