diff options
author | Timothy Arceri <[email protected]> | 2017-05-22 15:47:01 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-30 08:03:32 +1000 |
commit | b8174a837f785087861d1f83a684bad1d8e281fa (patch) | |
tree | 9b9f12de2be6a789f8ef69403b7a4aa34e905230 /src/mesa/main/bufferobj.c | |
parent | 3eb6d34dfc2c796174be15848f2d4fada2e01063 (diff) |
mesa: create bind_buffer_range() helper
This will help us add KHR_no_error support.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2d3e0f2602c..5aae579eaf4 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -3991,9 +3991,9 @@ bind_atomic_buffers(struct gl_context *ctx, _mesa_HashUnlockMutex(ctx->Shared->BufferObjects); } -void GLAPIENTRY -_mesa_BindBufferRange(GLenum target, GLuint index, - GLuint buffer, GLintptr offset, GLsizeiptr size) +static ALWAYS_INLINE void +bind_buffer_range(GLenum target, GLuint index, GLuint buffer, GLintptr offset, + GLsizeiptr size) { GET_CURRENT_CONTEXT(ctx); struct gl_buffer_object *bufObj; @@ -4056,6 +4056,13 @@ _mesa_BindBufferRange(GLenum target, GLuint index, } void GLAPIENTRY +_mesa_BindBufferRange(GLenum target, GLuint index, + GLuint buffer, GLintptr offset, GLsizeiptr size) +{ + bind_buffer_range(target, index, buffer, offset, size); +} + +void GLAPIENTRY _mesa_BindBufferBase(GLenum target, GLuint index, GLuint buffer) { GET_CURRENT_CONTEXT(ctx); |