Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing tokens for ARB_texture_buffer_object (core since GL3.1)…

…. Fixes issue [#2615]: "GetPName.MaxTextureBufferSize is missing".

git-svn-id: https://opentk.svn.sourceforge.net/svnroot/opentk/trunk@3076 ebc5dd9b-fb1d-0410-b6f8-d24c324e9604
  • Loading branch information...
commit 37e8cf8ed088a0913d4a068e78840d93527086bc 1 parent b383838
the_fiddler authored
View
10 Source/Bind/Specifications/GL2/gloverrides.xml
@@ -1487,13 +1487,14 @@
<token name="ELEMENT_ARRAY_BUFFER" value="0x8893" />
<token name="PIXEL_PACK_BUFFER" value="0x88EB" />
<token name="PIXEL_UNPACK_BUFFER" value="0x88EC" />
- <token name="TEXTURE_BUFFER" value="0x8C2A" />
<token name="TRANSFORM_FEEDBACK_BUFFER" value="0x8C8E" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER" />
<use enum="VERSION_4_0" token="DRAW_INDIRECT_BUFFER" />
</enum>
<enum name="BufferTargetARB">
<token name="ARRAY_BUFFER" value="0x8892" />
<token name="ELEMENT_ARRAY_BUFFER" value="0x8893" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER" /> <!-- Arb_texture_buffer_object -->
</enum>
<enum name="BufferUsageARB">
<token name="DYNAMIC_COPY" value="0x88EA" />
@@ -1994,6 +1995,11 @@
<token name="WEIGHT_ARRAY_BUFFER_BINDING" value="0x889E" />
<use enum="VERSION_1_3" token="SAMPLES" />
<use enum="VERSION_1_3" token="SAMPLE_BUFFERS" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER" />
+ <use enum="VERSION_3_1" token="MAX_TEXTURE_BUFFER_SIZE" />
+ <use enum="VERSION_3_1" token="TEXTURE_BINDING_BUFFER" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER_DATA_STORE_BINDING" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER_FORMAT" />
<use enum="VERSION_3_2" token="MAX_FRAGMENT_INPUT_COMPONENTS" />
<use enum="VERSION_3_2" token="MAX_GEOMETRY_INPUT_COMPONENTS" />
<use enum="VERSION_3_2" token="MAX_GEOMETRY_OUTPUT_COMPONENTS" />
@@ -2742,7 +2748,6 @@
<token name="TEXTURE_2D_MULTISAMPLE_ARRAY" value="0x9102" />
<token name="TEXTURE_3D" value="0x806F" />
<token name="TEXTURE_BINDING_CUBE_MAP" value="0x8514" />
- <token name="TEXTURE_BUFFER" value="0x8C2A" />
<token name="TEXTURE_CUBE_MAP" value="0x8513" />
<token name="TEXTURE_CUBE_MAP_NEGATIVE_X" value="0x8516" />
<token name="TEXTURE_CUBE_MAP_NEGATIVE_Y" value="0x8518" />
@@ -2753,6 +2758,7 @@
<token name="TEXTURE_RECTANGLE" value="0x84F5" />
<use enum="ARB_texture_rectangle" token="TEXTURE_RECTANGLE_ARB" />
<use enum="NV_texture_rectangle" token="TEXTURE_RECTANGLE_NV" />
+ <use enum="VERSION_3_1" token="TEXTURE_BUFFER" />
<use enum="VERSION_4_0" token="TEXTURE_CUBE_MAP_ARRAY" />
<use enum="VERSION_4_0" token="PROXY_TEXTURE_CUBE_MAP_ARRAY" />
</enum>
View
24 Source/OpenTK/Graphics/OpenGL/GLEnums.cs
@@ -24440,6 +24440,10 @@ public enum BufferTargetArb : int
/// Original was GL_ELEMENT_ARRAY_BUFFER = 0x8893
/// </summary>
ElementArrayBuffer = ((int)0x8893) ,
+ /// <summary>
+ /// Original was GL_TEXTURE_BUFFER = 0x8C2A
+ /// </summary>
+ TextureBuffer = ((int)0x8C2A) ,
}
/// <summary>
@@ -33206,6 +33210,26 @@ public enum GetPName : int
/// </summary>
MaxGeometryTextureImageUnits = ((int)0x8C29) ,
/// <summary>
+ /// Original was GL_TEXTURE_BUFFER = 0x8C2A
+ /// </summary>
+ TextureBuffer = ((int)0x8C2A) ,
+ /// <summary>
+ /// Original was GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B
+ /// </summary>
+ MaxTextureBufferSize = ((int)0x8C2B) ,
+ /// <summary>
+ /// Original was GL_TEXTURE_BINDING_BUFFER = 0x8C2C
+ /// </summary>
+ TextureBindingBuffer = ((int)0x8C2C) ,
+ /// <summary>
+ /// Original was GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D
+ /// </summary>
+ TextureBufferDataStoreBinding = ((int)0x8C2D) ,
+ /// <summary>
+ /// Original was GL_TEXTURE_BUFFER_FORMAT = 0x8C2E
+ /// </summary>
+ TextureBufferFormat = ((int)0x8C2E) ,
+ /// <summary>
/// Original was GL_SAMPLE_SHADING = 0x8C36
/// </summary>
SampleShading = ((int)0x8C36) ,
Please sign in to comment.
Something went wrong with that request. Please try again.