From b82c47215689d1243d1aa810bff7f06d8288d686 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 14 Jun 2012 16:55:56 -0700 Subject: mesa: Move glBindBufferBase and glBindBufferRange() to bufferobj. The rest of the TFB implementation remains in transformfeedback.c, and this will be shared with UBOs. v2: Move the size/offset checks shared with UBOs to common code as well. (Kenneth's review) Reviewed-by: Brian Paul (v1) Reviewed-by: Kenneth Graunke --- src/mesa/main/bufferobj.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/main/bufferobj.h') diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 819ca2573ef..e1d0f7a97e8 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -159,6 +159,13 @@ extern void GLAPIENTRY _mesa_GetObjectParameterivAPPLE(GLenum objectType, GLuint name, GLenum pname, GLint* params); #endif +void GLAPIENTRY +_mesa_BindBufferBase(GLenum target, GLuint index, GLuint buffer); + +void GLAPIENTRY +_mesa_BindBufferRange(GLenum target, GLuint index, + GLuint buffer, GLintptr offset, GLsizeiptr size); + extern void _mesa_init_bufferobj_dispatch(struct _glapi_table *disp); -- cgit v1.2.3