summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorAntia Puentes <apuentes@igalia.com>2015-11-04 16:51:01 +0100
committerEduardo Lima Mitev <elima@igalia.com>2016-03-03 15:14:06 +0100
commit5eef3558231854f52059e1745b2f2a0cfdc816a4 (patch)
tree682d78093a35a791b1dc24be0f9dbd81be946308 /src/mesa/main/teximage.c
parentb5d27bc5ddb9f30153e02f4ae1096c8d6eda3df5 (diff)
downloadexternal_mesa3d-5eef3558231854f52059e1745b2f2a0cfdc816a4.zip
external_mesa3d-5eef3558231854f52059e1745b2f2a0cfdc816a4.tar.gz
external_mesa3d-5eef3558231854f52059e1745b2f2a0cfdc816a4.tar.bz2
mesa/teximage: make public is_renderable_texture_format
It will be used by the ARB_internalformat_query2 implementation to check if the 'internalformat' passed is supported by texture MULTISAMPLE 'targets'. Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 8a4c628..3f8e2a6 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -5148,8 +5148,8 @@ _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer,
bufObj, offset, size, "glTextureBufferRange");
}
-static GLboolean
-is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
+GLboolean
+_mesa_is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
{
/* Everything that is allowed for renderbuffers,
* except for a base format of GL_STENCIL_INDEX, unless supported.
@@ -5229,7 +5229,7 @@ texture_image_multisample(struct gl_context *ctx, GLuint dims,
return;
}
- if (!is_renderable_texture_format(ctx, internalformat)) {
+ if (!_mesa_is_renderable_texture_format(ctx, internalformat)) {
/* Page 172 of OpenGL ES 3.1 spec says:
* "An INVALID_ENUM error is generated if sizedinternalformat is not
* color-renderable, depth-renderable, or stencil-renderable (as