mesa: remove no longer needed _mesa_is_bufferobj function
[mesa.git] / src / mesa / tnl / t_draw.c
index 33d39a7bd20a9ed647b41e3f25e2ba39c29ce9be..335161ef0d0388cc22ba2022e4873aa1ef34309f 100644 (file)
@@ -291,7 +291,7 @@ static void bind_inputs( struct gl_context *ctx,
       const struct gl_array_attributes *attrib = array->VertexAttrib;
       const void *ptr;
 
-      if (_mesa_is_bufferobj(binding->BufferObj)) {
+      if (binding->BufferObj) {
         if (!binding->BufferObj->Mappings[MAP_INTERNAL].Pointer) {
            bo[*nr_bo] = binding->BufferObj;
            (*nr_bo)++;
@@ -362,7 +362,7 @@ static void bind_indices( struct gl_context *ctx,
       return;
    }
 
-   if (_mesa_is_bufferobj(ib->obj) &&
+   if (ib->obj &&
        !_mesa_bufferobj_mapped(ib->obj, MAP_INTERNAL)) {
       /* if the buffer object isn't mapped yet, map it now */
       bo[*nr_bo] = ib->obj;