JWman's picture

"Unable to find Entry point named 'glClearDepthf' in DLL 'opengl32.dll"

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Got this exception in nightly build 2012_02_20

I just tried to update from the 1.0 release to the latest nightly build, and I got the error listed in the subject when making the following call:
GL.ClearDepth(1);

A workaround is to instead call
GL.ClearDepth(1.0);

To be clear, this was not an issue in the 1.0 release.

Laptop graphics card driver info (with the problem):
Version 2.1.0 - Build 8.15.10.1986
Shading language version : 1.20 - Intel Build 8.15.10.1986
Vendor: Intel
Renderer: Intel(r) Graphics Media Accelerator HD

Works either way on my desktop which has this driver info:
Version: 4.1.10750 Compatibility Profile Context
Shading Language Version: 4.10
Vendor: ATI Technologies Inc.
Renderer: ATI Radeon HD 5700 Series


Comments

Comment viewing options

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

#1

Status:open» won't fix

This is unintuitive, but not actually a bug. The type of the parameters matter when using OpenTK.

The documentation tooltips now list which OpenGL version is required for each function. GL.ClearDepth lists two overloads:

  • one taking a double and documented with [requires: v1.0]
  • one taking a float and documented with [requires: v4.1 or ARB_ES2_compatibility]