On 02/02/15 16:09, Ilia Mirkin wrote:
On Mon, Feb 2, 2015 at 6:00 AM, Martin Peres
<martin.pe...@linux.intel.com> wrote:
+static struct gl_transform_feedback_object *
+_mesa_lookup_transform_feedback_object_err(struct gl_context *ctx,
+                                           GLuint xfb, const char* func)
+{
+   struct gl_transform_feedback_object *obj;
+
+   obj = _mesa_lookup_transform_feedback_object(ctx, xfb);
+   if (!obj) {
+      _mesa_error(ctx, GL_INVALID_OPERATION,
+                  "%s(xfb=%u: non-generated object name)", func, xfb);
+   }
+
+   return obj;
+}
+
+/**
+ * Wrapper around _mesa_lookup_bufferobj that throws GL_INVALID_VALUE if id
+ * is not in the hash table. Specialised version for the
+ * transform-feedback-related functions. After calling _mesa_error, it
+ * returns NULL.
+ */
+static struct gl_buffer_object *
+_mesa_lookup_transform_feedback_bufferobj_err(struct gl_context *ctx,
+                                              GLuint buffer, const char* func)
The general convention in mesa is that "public" functions are called
_mesa_foo, while "private" (i.e. static) functions are just called
foo. In this case, lookup_transform_feedback_bufferobj_err.

Noted, thanks Ilia :)
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to