diff options
author | Pi Tabred <[email protected]> | 2013-12-14 10:32:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-18 09:06:51 -0700 |
commit | d5e6fe4d29fcada5f6f75eaff3160aa6ed4a46e3 (patch) | |
tree | 6fa421fe9f2d80e31796555961e38cc5e308f525 /src/mesa/main/teximage.c | |
parent | 1f7c3e541fa8c16435d78585e8c2ee449de5e61a (diff) |
mesa: Make validate_texbuffer_format function available externally
- change storage class from static to extern
- rename validate_texbuffer_format to _mesa_validate_texbuffer_format
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index f9427dcc45f..0d436b2fb21 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -4037,8 +4037,9 @@ get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat) } -static gl_format -validate_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat) +gl_format +_mesa_validate_texbuffer_format(const struct gl_context *ctx, + GLenum internalFormat) { gl_format format = get_texbuffer_format(ctx, internalFormat); GLenum datatype; @@ -4088,7 +4089,7 @@ texbufferrange(struct gl_context *ctx, GLenum target, GLenum internalFormat, return; } - format = validate_texbuffer_format(ctx, internalFormat); + format = _mesa_validate_texbuffer_format(ctx, internalFormat); if (format == MESA_FORMAT_NONE) { _mesa_error(ctx, GL_INVALID_ENUM, "glTexBuffer(internalFormat 0x%x)", internalFormat); |