summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-04-04 17:17:50 +0000
committerBrian Paul <[email protected]>2003-04-04 17:17:50 +0000
commit738318bb75dea8dac4465f53850987f6062a732d (patch)
tree870a4e1bb830bd65e3cb829c1eb1ee4d97cbeecb /src/mesa/main/texstore.c
parentb0e90cc839c6b7fcd3bd76759862eb3bc423e50a (diff)
Rework gl[Copy]Tex[Sub]Image() error checking so that all level, width, height
and depth checks are done via ctx->Driver.TestProxyTexImage(). This allows more flexiblity, like supporting larger, non-cubic 3D textures.
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r--src/mesa/main/texstore.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 08e625bc0d4..f9afbb6b87f 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1,5 +1,3 @@
-/* $Id: texstore.c,v 1.55 2003/04/01 16:41:55 brianp Exp $ */
-
/*
* Mesa 3-D graphics library
* Version: 5.1
@@ -1264,40 +1262,6 @@ _mesa_store_compressed_texsubimage3d(GLcontext *ctx, GLenum target,
}
-
-
-
-/*
- * This is the fallback for Driver.TestProxyTexImage().
- */
-GLboolean
-_mesa_test_proxy_teximage(GLcontext *ctx, GLenum target, GLint level,
- GLint internalFormat, GLenum format, GLenum type,
- GLint width, GLint height, GLint depth, GLint border)
-{
- struct gl_texture_image *texImage;
-
- (void) format;
- (void) type;
-
- texImage = _mesa_get_proxy_tex_image(ctx, target, level);
-
- /* We always pass.
- * The core Mesa code will have already tested the image size, etc.
- * If a driver has more stringent texture limits to enforce it will
- * have to override this function.
- */
- /* choose the texture format */
- assert(ctx->Driver.ChooseTextureFormat);
- texImage->TexFormat = (*ctx->Driver.ChooseTextureFormat)(ctx,
- internalFormat, format, type);
- assert(texImage->TexFormat);
-
- return GL_TRUE;
-}
-
-
-
/*
* Average together two rows of a source image to produce a single new
* row in the dest image. It's legal for the two source rows to point