diff options
author | Brian Paul <[email protected]> | 2003-05-10 04:35:09 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-05-10 04:35:09 +0000 |
commit | ea31ca47200d96b7cc687989ee7f9953819fddbb (patch) | |
tree | f6ecd2c249a274e098346760b0a5fcc3b8d8132a /src/mesa/main/bufferobj.c | |
parent | baa42c3364b58a7eaf08856c7d213d9ae0e3b021 (diff) |
fix MapBufferARB() return type
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 3a7a413e973..f3844022195 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -174,11 +174,11 @@ _mesa_GetBufferSubDataARB(GLenum target, GLintptrARB offset, } } -void +void * _mesa_MapBufferARB(GLenum target, GLenum access) { GET_CURRENT_CONTEXT(ctx); - ASSERT_OUTSIDE_BEGIN_END(ctx); + ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, NULL); switch (access) { case GL_READ_ONLY_ARB: @@ -188,7 +188,7 @@ _mesa_MapBufferARB(GLenum target, GLenum access) break; default: _mesa_error(ctx, GL_INVALID_ENUM, "glMapBufferARB(access)"); - return; + return NULL; } if (target == GL_ARRAY_BUFFER_ARB) { @@ -199,8 +199,10 @@ _mesa_MapBufferARB(GLenum target, GLenum access) } else { _mesa_error(ctx, GL_INVALID_ENUM, "glMapBufferARB(target)"); - return; + return NULL; } + + return NULL; } GLboolean |