mesa: remove no longer needed _mesa_is_bufferobj function
[mesa.git] / src / mesa / state_tracker / st_draw.c
index e3bea305a51e83e48932565fe8f86a0d680da1e3..a8ff306e00a4401dd0b6ebf9aaa19fc5cb095530 100644 (file)
@@ -206,7 +206,7 @@ st_draw_vbo(struct gl_context *ctx,
       info.min_index = min_index;
       info.max_index = max_index;
 
-      if (_mesa_is_bufferobj(bufobj)) {
+      if (bufobj) {
          /* indices are in a real VBO */
          info.has_user_indices = false;
          info.index.resource = st_buffer_object(bufobj)->buffer;
@@ -295,7 +295,7 @@ st_indirect_draw_vbo(struct gl_context *ctx,
       struct gl_buffer_object *bufobj = ib->obj;
 
       /* indices are always in a real VBO */
-      assert(_mesa_is_bufferobj(bufobj));
+      assert(bufobj);
 
       info.index_size = 1 << ib->index_size_shift;
       info.index.resource = st_buffer_object(bufobj)->buffer;