From 785a8c3bebac838b675ac891aaadff4efcb504d8 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Fri, 25 Jan 2013 14:54:05 +0100 Subject: mesa: implement GL_ARB_texture_buffer_range v2: Record texObj.BufferSize as -1 in TexBuffer(non-Range) instead of the buffer's current size so we know we always have to use the full size of the buffer object (i.e. even if it changes without the user calling TexBuffer again) for the texture. Clarify invalid offset alignment error message. v3: Use extra GL_CORE-only section in get_hash_params.py for TEXTURE_BUFFER_OFFSET_ALIGNMENT. v4: Remove unnecessary check for profile in _mesa_TexBufferRange. Add check for extension enable in get_tex_level_parameter_buffer. v5: Fix position in gl_API.xml. Add comment about meaning of BufferSize == -1. v6: Add back checks for core profile and add a note about it. Reviewed-by: Ian Romanick Reviewed-by: Eric Anholt --- src/mesa/main/teximage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/teximage.h') diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 65e93337126..7124cac5214 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -289,6 +289,10 @@ _mesa_CompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, extern void GLAPIENTRY _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer); +extern void GLAPIENTRY +_mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer, + GLintptr offset, GLsizeiptr size); + /*@}*/ -- cgit v1.2.3