diff options
author | Brian Paul <[email protected]> | 2014-01-27 12:32:28 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-02 06:47:32 -0700 |
commit | 8689076925ddc903685f2ac1563b5ea9dc677c15 (patch) | |
tree | 02acc45d130d126c5b7d33590245c75088094ae8 | |
parent | 9eaed3eb6e6989427e73e4e63f0dc98c892151bf (diff) |
mesa: make _mesa_get_proxy_target() static
Wasn't used in any other file.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/main/teximage.c | 10 | ||||
-rw-r--r-- | src/mesa/main/teximage.h | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 508d5466724..6f84b382a25 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -689,8 +689,8 @@ _mesa_is_proxy_texture(GLenum target) /** * Return the proxy target which corresponds to the given texture target */ -GLenum -_mesa_get_proxy_target(GLenum target) +static GLenum +proxy_target(GLenum target) { switch (target) { case GL_TEXTURE_1D: @@ -730,7 +730,7 @@ _mesa_get_proxy_target(GLenum target) case GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY: return GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY; default: - _mesa_problem(NULL, "unexpected target in _mesa_get_proxy_target()"); + _mesa_problem(NULL, "unexpected target in proxy_target()"); return 0; } } @@ -3167,7 +3167,7 @@ teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims, height, depth, border); /* check that the texture won't take too much memory, etc */ - sizeOK = ctx->Driver.TestProxyTexImage(ctx, _mesa_get_proxy_target(target), + sizeOK = ctx->Driver.TestProxyTexImage(ctx, proxy_target(target), level, texFormat, width, height, depth, border); @@ -3586,7 +3586,7 @@ copyteximage(struct gl_context *ctx, GLuint dims, internalFormat, GL_NONE, GL_NONE); assert(texFormat != MESA_FORMAT_NONE); - if (!ctx->Driver.TestProxyTexImage(ctx, _mesa_get_proxy_target(target), + if (!ctx->Driver.TestProxyTexImage(ctx, proxy_target(target), level, texFormat, width, height, 1, border)) { _mesa_error(ctx, GL_OUT_OF_MEMORY, diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index f2eb3e8d9b8..5f8a47776bc 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -66,9 +66,6 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat ); extern GLboolean _mesa_is_proxy_texture(GLenum target); -extern GLenum -_mesa_get_proxy_target(GLenum target); - extern struct gl_texture_image * _mesa_new_texture_image( struct gl_context *ctx ); |