Make GL_ARB_vertex_buffer_object mandatory
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
committed by
Ian Romanick
parent
2b77b1d62e
commit
82b9661894
@@ -182,6 +182,7 @@ driGetRendererString( char * buffer, const char * hardware_name,
|
||||
#define need_GL_ARB_multisample
|
||||
#define need_GL_ARB_texture_compression
|
||||
#define need_GL_ARB_transpose_matrix
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_window_pos
|
||||
#define need_GL_EXT_compiled_vertex_array
|
||||
#define need_GL_EXT_polygon_offset
|
||||
@@ -202,6 +203,7 @@ static const struct dri_extension all_mesa_extensions[] = {
|
||||
{ "GL_ARB_multisample", GL_ARB_multisample_functions },
|
||||
{ "GL_ARB_texture_compression", GL_ARB_texture_compression_functions },
|
||||
{ "GL_ARB_transpose_matrix", GL_ARB_transpose_matrix_functions },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions},
|
||||
{ "GL_ARB_window_pos", GL_ARB_window_pos_functions },
|
||||
{ "GL_EXT_blend_func_separate", GL_EXT_blend_func_separate_functions },
|
||||
{ "GL_EXT_compiled_vertex_array", GL_EXT_compiled_vertex_array_functions },
|
||||
|
||||
@@ -63,9 +63,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "drirenderbuffer.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#include "extension_helper.h"
|
||||
|
||||
#ifndef I810_DEBUG
|
||||
int I810_DEBUG = (0);
|
||||
#endif
|
||||
@@ -126,7 +123,6 @@ const struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_texture_env_combine", NULL },
|
||||
{ "GL_ARB_texture_env_crossbar", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_stencil_wrap", NULL },
|
||||
{ "GL_EXT_texture_edge_clamp", NULL },
|
||||
{ "GL_EXT_texture_env_combine", NULL },
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#define need_GL_ARB_occlusion_query
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_shader_objects
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_ARB_vertex_shader
|
||||
#define need_GL_ARB_window_pos
|
||||
@@ -76,7 +75,6 @@ static const struct dri_extension card_extensions[] = {
|
||||
{ "GL_ARB_texture_env_dot3", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_texture_rectangle", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_ARB_vertex_program", GL_ARB_vertex_program_functions },
|
||||
{ "GL_ARB_window_pos", GL_ARB_window_pos_functions },
|
||||
{ "GL_EXT_blend_color", GL_EXT_blend_color_functions },
|
||||
|
||||
@@ -57,9 +57,6 @@
|
||||
#include "utils.h"
|
||||
#include "vblank.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#include "extension_helper.h"
|
||||
|
||||
#ifndef MACH64_DEBUG
|
||||
int MACH64_DEBUG = (0);
|
||||
#endif
|
||||
@@ -82,7 +79,6 @@ static const struct dri_debug_control debug_control[] =
|
||||
const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_texture_edge_clamp", NULL },
|
||||
{ "GL_MESA_ycbcr_texture", NULL },
|
||||
{ "GL_SGIS_generate_mipmap", NULL },
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
|
||||
#include "GL/internal/dri_interface.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_gpu_program_parameters
|
||||
@@ -384,7 +383,6 @@ static const struct dri_extension g400_extensions[] =
|
||||
static const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_texture_rectangle", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_blend_logic_op", NULL },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
{ "GL_EXT_multi_draw_arrays", GL_EXT_multi_draw_arrays_functions },
|
||||
|
||||
@@ -65,7 +65,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
int R128_DEBUG = 0;
|
||||
#endif
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_blend_minmax
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_secondary_color
|
||||
@@ -76,7 +75,6 @@ const struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_env_add", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_blend_subtract", GL_EXT_blend_minmax_functions },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
{ "GL_EXT_texture_edge_clamp", NULL },
|
||||
|
||||
@@ -62,7 +62,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "r200_maos.h"
|
||||
#include "r200_vertprog.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_ATI_fragment_shader
|
||||
#define need_GL_EXT_blend_minmax
|
||||
@@ -125,7 +124,6 @@ const struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_texture_env_dot3", NULL },
|
||||
{ "GL_ARB_texture_env_crossbar", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_blend_minmax", GL_EXT_blend_minmax_functions },
|
||||
{ "GL_EXT_blend_subtract", NULL },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
|
||||
@@ -79,7 +79,6 @@ int hw_tcl_on = 1;
|
||||
|
||||
#define need_GL_VERSION_2_0
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_ARB_vertex_program
|
||||
#define need_GL_EXT_blend_equation_separate
|
||||
#define need_GL_EXT_blend_func_separate
|
||||
@@ -108,7 +107,6 @@ const struct dri_extension card_extensions[] = {
|
||||
{"GL_ARB_texture_env_crossbar", NULL},
|
||||
{"GL_ARB_texture_env_dot3", NULL},
|
||||
{"GL_ARB_texture_mirrored_repeat", NULL},
|
||||
{"GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions},
|
||||
{"GL_ARB_vertex_program", GL_ARB_vertex_program_functions},
|
||||
{"GL_EXT_blend_equation_separate", GL_EXT_blend_equation_separate_functions},
|
||||
{"GL_EXT_blend_func_separate", GL_EXT_blend_func_separate_functions},
|
||||
|
||||
@@ -62,7 +62,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "radeon_tcl.h"
|
||||
#include "radeon_maos.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_blend_minmax
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_secondary_color
|
||||
@@ -119,7 +118,6 @@ const struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_texture_env_crossbar", NULL },
|
||||
{ "GL_ARB_texture_env_dot3", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_blend_logic_op", NULL },
|
||||
{ "GL_EXT_blend_subtract", GL_EXT_blend_minmax_functions },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
#include "drirenderbuffer.h"
|
||||
#include "texmem.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_secondary_color
|
||||
#include "extension_helper.h"
|
||||
|
||||
@@ -132,7 +131,6 @@ struct timeval tv_s1,tv_f1;
|
||||
static const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_stencil_wrap", NULL },
|
||||
{ "GL_EXT_texture_lod_bias", NULL },
|
||||
{ "GL_EXT_secondary_color", GL_EXT_secondary_color_functions },
|
||||
|
||||
@@ -57,7 +57,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#include "tnl/tnl.h"
|
||||
#include "tnl/t_pipeline.h"
|
||||
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_secondary_color
|
||||
#include "extension_helper.h"
|
||||
@@ -75,7 +74,6 @@ struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_multitexture", NULL },
|
||||
{ "GL_ARB_texture_border_clamp", NULL },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
/*{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },*/
|
||||
{ "GL_EXT_texture_lod_bias", NULL },
|
||||
{ "GL_EXT_secondary_color", GL_EXT_secondary_color_functions },
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
|
||||
/* #define need_GL_ARB_point_parameters */
|
||||
#define need_GL_ARB_occlusion_query
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
/* #define need_GL_ARB_vertex_program */
|
||||
#define need_GL_EXT_blend_equation_separate
|
||||
#define need_GL_EXT_blend_func_separate
|
||||
@@ -82,7 +81,6 @@ const struct dri_extension card_extensions[] =
|
||||
{
|
||||
{ "GL_ARB_occlusion_query", GL_ARB_occlusion_query_functions },
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
|
||||
{ "GL_EXT_blend_func_separate", GL_EXT_blend_func_separate_functions },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
#include "drirenderbuffer.h"
|
||||
|
||||
#define need_GL_ARB_point_parameters
|
||||
#define need_GL_ARB_vertex_buffer_object
|
||||
#define need_GL_EXT_fog_coord
|
||||
#define need_GL_EXT_secondary_color
|
||||
#include "extension_helper.h"
|
||||
@@ -371,7 +370,6 @@ const struct dri_extension card_extensions[] =
|
||||
{ "GL_ARB_texture_env_combine", NULL },
|
||||
/* { "GL_ARB_texture_env_dot3", NULL }, */
|
||||
{ "GL_ARB_texture_mirrored_repeat", NULL },
|
||||
{ "GL_ARB_vertex_buffer_object", GL_ARB_vertex_buffer_object_functions },
|
||||
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
|
||||
{ "GL_EXT_secondary_color", GL_EXT_secondary_color_functions },
|
||||
{ "GL_EXT_stencil_wrap", NULL },
|
||||
|
||||
@@ -1917,7 +1917,6 @@ fxDDInitExtensions(GLcontext * ctx)
|
||||
/* core-level extensions */
|
||||
_mesa_enable_extension(ctx, "GL_EXT_multi_draw_arrays");
|
||||
_mesa_enable_extension(ctx, "GL_IBM_multimode_draw_arrays");
|
||||
_mesa_enable_extension(ctx, "GL_ARB_vertex_buffer_object");
|
||||
/* dangerous */
|
||||
if (getenv("MESA_FX_ALLOW_VP")) {
|
||||
_mesa_enable_extension(ctx, "GL_ARB_vertex_program");
|
||||
|
||||
@@ -75,7 +75,7 @@ static const struct {
|
||||
{ OFF, "GL_ARB_texture_non_power_of_two", F(ARB_texture_non_power_of_two)},
|
||||
{ OFF, "GL_ARB_texture_rectangle", F(NV_texture_rectangle) },
|
||||
{ ON, "GL_ARB_transpose_matrix", F(ARB_transpose_matrix) },
|
||||
{ OFF, "GL_ARB_vertex_buffer_object", F(ARB_vertex_buffer_object) },
|
||||
{ ON, "GL_ARB_vertex_buffer_object", F(ARB_vertex_buffer_object) },
|
||||
{ OFF, "GL_ARB_vertex_program", F(ARB_vertex_program) },
|
||||
{ OFF, "GL_ARB_vertex_shader", F(ARB_vertex_shader) },
|
||||
{ ON, "GL_ARB_window_pos", F(ARB_window_pos) },
|
||||
@@ -228,7 +228,7 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
|
||||
ctx->Extensions.ARB_vertex_shader = GL_TRUE;
|
||||
#endif
|
||||
#if FEATURE_ARB_vertex_buffer_object
|
||||
ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;
|
||||
/*ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;*/
|
||||
#endif
|
||||
ctx->Extensions.APPLE_vertex_array_object = GL_TRUE;
|
||||
#if FEATURE_ATI_fragment_shader
|
||||
@@ -389,7 +389,7 @@ void
|
||||
_mesa_enable_1_5_extensions(GLcontext *ctx)
|
||||
{
|
||||
ctx->Extensions.ARB_occlusion_query = GL_TRUE;
|
||||
ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;
|
||||
/*ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;*/
|
||||
ctx->Extensions.EXT_shadow_funcs = GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -1581,43 +1581,33 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
|
||||
params[0] = FLOAT_TO_BOOLEAN(ctx->Const.MaxSpotExponent);
|
||||
break;
|
||||
case GL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayBufferObj->Name);
|
||||
break;
|
||||
case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Vertex.BufferObj->Name);
|
||||
break;
|
||||
case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Normal.BufferObj->Name);
|
||||
break;
|
||||
case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Color.BufferObj->Name);
|
||||
break;
|
||||
case GL_INDEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->Index.BufferObj->Name);
|
||||
break;
|
||||
case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name);
|
||||
break;
|
||||
case GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->EdgeFlag.BufferObj->Name);
|
||||
break;
|
||||
case GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->SecondaryColor.BufferObj->Name);
|
||||
break;
|
||||
case GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ArrayObj->FogCoord.BufferObj->Name);
|
||||
break;
|
||||
case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetBooleanv");
|
||||
params[0] = INT_TO_BOOLEAN(ctx->Array.ElementArrayBufferObj->Name);
|
||||
break;
|
||||
case GL_PIXEL_PACK_BUFFER_BINDING_EXT:
|
||||
@@ -3422,43 +3412,33 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
|
||||
params[0] = ctx->Const.MaxSpotExponent;
|
||||
break;
|
||||
case GL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayBufferObj->Name);
|
||||
break;
|
||||
case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->Vertex.BufferObj->Name);
|
||||
break;
|
||||
case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->Normal.BufferObj->Name);
|
||||
break;
|
||||
case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->Color.BufferObj->Name);
|
||||
break;
|
||||
case GL_INDEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->Index.BufferObj->Name);
|
||||
break;
|
||||
case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name);
|
||||
break;
|
||||
case GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->EdgeFlag.BufferObj->Name);
|
||||
break;
|
||||
case GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->SecondaryColor.BufferObj->Name);
|
||||
break;
|
||||
case GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ArrayObj->FogCoord.BufferObj->Name);
|
||||
break;
|
||||
case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetFloatv");
|
||||
params[0] = (GLfloat)(ctx->Array.ElementArrayBufferObj->Name);
|
||||
break;
|
||||
case GL_PIXEL_PACK_BUFFER_BINDING_EXT:
|
||||
@@ -5263,43 +5243,33 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
|
||||
params[0] = IROUND(ctx->Const.MaxSpotExponent);
|
||||
break;
|
||||
case GL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayBufferObj->Name;
|
||||
break;
|
||||
case GL_VERTEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->Vertex.BufferObj->Name;
|
||||
break;
|
||||
case GL_NORMAL_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->Normal.BufferObj->Name;
|
||||
break;
|
||||
case GL_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->Color.BufferObj->Name;
|
||||
break;
|
||||
case GL_INDEX_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->Index.BufferObj->Name;
|
||||
break;
|
||||
case GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name;
|
||||
break;
|
||||
case GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->EdgeFlag.BufferObj->Name;
|
||||
break;
|
||||
case GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->SecondaryColor.BufferObj->Name;
|
||||
break;
|
||||
case GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ArrayObj->FogCoord.BufferObj->Name;
|
||||
break;
|
||||
case GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB:
|
||||
CHECK_EXT1(ARB_vertex_buffer_object, "GetIntegerv");
|
||||
params[0] = ctx->Array.ElementArrayBufferObj->Name;
|
||||
break;
|
||||
case GL_PIXEL_PACK_BUFFER_BINDING_EXT:
|
||||
|
||||
+10
-10
@@ -815,30 +815,30 @@ StateVars = [
|
||||
|
||||
# GL_ARB_vertex_buffer_object
|
||||
( "GL_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayBufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayBufferObj->Name"], "", None ),
|
||||
( "GL_VERTEX_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->Vertex.BufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayObj->Vertex.BufferObj->Name"], "", None ),
|
||||
( "GL_NORMAL_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->Normal.BufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayObj->Normal.BufferObj->Name"], "", None ),
|
||||
( "GL_COLOR_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->Color.BufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayObj->Color.BufferObj->Name"], "", None ),
|
||||
( "GL_INDEX_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->Index.BufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayObj->Index.BufferObj->Name"], "", None ),
|
||||
( "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->TexCoord[ctx->Array.ActiveTexture].BufferObj->Name"],
|
||||
"", ["ARB_vertex_buffer_object"] ),
|
||||
"", None ),
|
||||
( "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->EdgeFlag.BufferObj->Name"], "", ["ARB_vertex_buffer_object"] ),
|
||||
["ctx->Array.ArrayObj->EdgeFlag.BufferObj->Name"], "", None ),
|
||||
( "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->SecondaryColor.BufferObj->Name"],
|
||||
"", ["ARB_vertex_buffer_object"] ),
|
||||
"", None ),
|
||||
( "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ArrayObj->FogCoord.BufferObj->Name"],
|
||||
"", ["ARB_vertex_buffer_object"] ),
|
||||
"", None ),
|
||||
# GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB - not supported
|
||||
( "GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB", GLint,
|
||||
["ctx->Array.ElementArrayBufferObj->Name"],
|
||||
"", ["ARB_vertex_buffer_object"] ),
|
||||
"", None ),
|
||||
|
||||
# GL_EXT_pixel_buffer_object
|
||||
( "GL_PIXEL_PACK_BUFFER_BINDING_EXT", GLint,
|
||||
|
||||
@@ -335,10 +335,6 @@ _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat *params)
|
||||
COPY_4V(params, ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + index]);
|
||||
break;
|
||||
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB:
|
||||
if (!ctx->Extensions.ARB_vertex_buffer_object) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glGetVertexAttribfvARB(pname)");
|
||||
return;
|
||||
}
|
||||
params[0] = (GLfloat) ctx->Array.ArrayObj->VertexAttrib[index].BufferObj->Name;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -469,10 +469,6 @@ _mesa_GetVertexAttribivNV(GLuint index, GLenum pname, GLint *params)
|
||||
params[3] = (GLint) ctx->Current.Attrib[index][3];
|
||||
break;
|
||||
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB:
|
||||
if (!ctx->Extensions.ARB_vertex_buffer_object) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glGetVertexAttribdvNV");
|
||||
return;
|
||||
}
|
||||
params[0] = ctx->Array.ArrayObj->VertexAttrib[index].BufferObj->Name;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user