Mesa (master): mesa: fix return statements in varray.c

Brian Paul brianp at kemper.freedesktop.org
Thu Nov 7 22:24:48 UTC 2013


Module: Mesa
Branch: master
Commit: fe9284a7bfde59c450c49e6c8d58be82907e13a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe9284a7bfde59c450c49e6c8d58be82907e13a4

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Nov  7 15:23:34 2013 -0700

mesa: fix return statements in varray.c

Return false, not GL_FALSE.  Add missing return value.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71359

---

 src/mesa/main/varray.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 1009bb8..d17d698 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -315,13 +315,13 @@ update_array_format(struct gl_context *ctx,
                   "%s(relativeOffset=%d > "
                   "GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET)",
                   func, relativeOffset);
-      return GL_FALSE;
+      return false;
    }
 
    if (ctx->Extensions.ARB_vertex_type_10f_11f_11f_rev &&
          type == GL_UNSIGNED_INT_10F_11F_11F_REV && size != 3) {
       _mesa_error(ctx, GL_INVALID_OPERATION, "%s(size=%d)", func, size);
-      return;
+      return false;
    }
 
    ASSERT(size <= 4);




More information about the mesa-commit mailing list