anathema's picture

Values in AssemblyProgramParameterArb enum seem inconsistent

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

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

Comment viewing options

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

#1

This looks like a bug. Use a cast as a workaround:

GL.Ext.ProgramParameter(_geometryShader, (AssemblyProgramParameterArb)0x8DDA, 2);