
Values in AssemblyProgramParameterArb enum seem inconsistent
Posted Sunday, 9 January, 2011 - 13:14 by anathema| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | open |
Jump to:
For example, AssemblyProgramParameterArb.GeometryVerticesOut is 0x8916, whereas GeometryVerticesOut everywhere else is 0x8DDA. Is this intentional?
The reason I ask is that I've just changed my code after finding the following warning in the build:
Warning 11 'OpenTK.Graphics.OpenGL.GL.Ext.ProgramParameter(int, OpenTK.Graphics.OpenGL.ExtGeometryShader4, int)' is obsolete: 'Use ProgramParameter(..., AssemblyProgramParameterArb, ...) instead.' D:\Development\Digitalis.LDTools\RenderEngine.Shaders.cs 216 21 Digitalis.LDTools
The original line of code is:
GL.Ext.ProgramParameter(_geometryShader, ExtGeometryShader4.GeometryVerticesOutExt, 2);
The new line is:
GL.Ext.ProgramParameter(_geometryShader, AssemblyProgramParameterArb.GeometryVerticesOut, 2);
My code no longer works :-(


Comments
#1
This looks like a bug. Use a cast as a workaround: