minor clean-ups
This commit is contained in:
@@ -69,7 +69,7 @@ lookup_arrayobj(GLcontext *ctx, GLuint id)
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate and initialize a new array object.
|
* Allocate and initialize a new vertex array object.
|
||||||
*
|
*
|
||||||
* This function is intended to be called via
|
* This function is intended to be called via
|
||||||
* \c dd_function_table::NewArrayObject.
|
* \c dd_function_table::NewArrayObject.
|
||||||
@@ -77,11 +77,8 @@ lookup_arrayobj(GLcontext *ctx, GLuint id)
|
|||||||
struct gl_array_object *
|
struct gl_array_object *
|
||||||
_mesa_new_array_object( GLcontext *ctx, GLuint name )
|
_mesa_new_array_object( GLcontext *ctx, GLuint name )
|
||||||
{
|
{
|
||||||
struct gl_array_object *obj;
|
struct gl_array_object *obj = MALLOC_STRUCT(gl_array_object);
|
||||||
|
if (obj)
|
||||||
(void) ctx;
|
|
||||||
|
|
||||||
obj = MALLOC_STRUCT(gl_array_object);
|
|
||||||
_mesa_initialize_array_object(ctx, obj, name);
|
_mesa_initialize_array_object(ctx, obj, name);
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
@@ -97,7 +94,6 @@ void
|
|||||||
_mesa_delete_array_object( GLcontext *ctx, struct gl_array_object *obj )
|
_mesa_delete_array_object( GLcontext *ctx, struct gl_array_object *obj )
|
||||||
{
|
{
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
|
|
||||||
_mesa_free(obj);
|
_mesa_free(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +173,6 @@ _mesa_initialize_array_object( GLcontext *ctx,
|
|||||||
obj->VertexAttrib[i].Flags = CA_CLIENT_DATA;
|
obj->VertexAttrib[i].Flags = CA_CLIENT_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if FEATURE_ARB_vertex_buffer_object
|
#if FEATURE_ARB_vertex_buffer_object
|
||||||
/* Vertex array buffers */
|
/* Vertex array buffers */
|
||||||
obj->Vertex.BufferObj = ctx->Array.NullBufferObj;
|
obj->Vertex.BufferObj = ctx->Array.NullBufferObj;
|
||||||
|
Reference in New Issue
Block a user