Anonymous's picture

GLCore.cs: EnableClientState()

Project:The Open Toolkit library
Version:1.0-beta-3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In Source\Compatibility\Graphics\GL\GLCore.cs functions:

[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableClientState", ExactSpelling = true)]
internal extern static void EnableClientState(OpenTK.Graphics.EnableCap array);

[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableClientState", ExactSpelling = true)]
internal extern static void DisableClientState(OpenTK.Graphics.EnableCap array);

and same function use OpenTK.Graphics.EnableCap, but in docs http://www.talisman.org/opengl-1.1/Reference/glEnableClientState.html the are not EnableCap enumeration used. I think it must be special enum for it or not?

Thanks for work.


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» confirmed

Thanks, for some reason EnableClientState is defined to take EnableCap in gl.spec. However, the 3.2 spec (pdf) confirms that this is not correct - will look into this.

the Fiddler's picture

#2

Version:1.0-beta-2» 0.9.x-dev
Status:confirmed» fixed

Fixed in r2590.

the Fiddler's picture

#4

Version:0.9.x-dev» 1.0-beta-3
Status:fixed» closed

Closing issues fixed in opentk-1.0-beta-3.