Mesa (master): mesa: add comment to clarify ctx->Driver.MapBufferRange() return value

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 11 23:18:55 UTC 2013


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Oct 11 09:20:56 2013 -0600

mesa: add comment to clarify ctx->Driver.MapBufferRange() return value

---

 src/mesa/main/dd.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 0806e41..29469ce 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -575,7 +575,8 @@ struct dd_function_table {
                               GLintptr readOffset, GLintptr writeOffset,
                               GLsizeiptr size );
 
-   /* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
+   /* Returns pointer to the start of the mapped range.
+    * May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
     */
    void * (*MapBufferRange)( struct gl_context *ctx, GLintptr offset,
                              GLsizeiptr length, GLbitfield access,




More information about the mesa-commit mailing list