summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-07-31 21:07:00 -0700
committerEric Anholt <[email protected]>2011-09-27 12:12:07 -0700
commit6731c6cfb1cd2f82b8b20c0f39a8fb13df87a55a (patch)
treeff0baf4875b1c4d4f3de39193b6af462862fdfe9 /src
parent019c9ee2204723a9a041316e055e0602e514cad4 (diff)
nouveau: Drop mapping we were doing around glGetTexImage().
It's handled by MapTextureImage() now.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_texture.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
index 320bc8c855f..9dc21869ca8 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c
@@ -621,19 +621,6 @@ nouveau_texsubimage_1d(struct gl_context *ctx, GLenum target, GLint level,
}
static void
-nouveau_get_teximage(struct gl_context *ctx, GLenum target, GLint level,
- GLenum format, GLenum type, GLvoid *pixels,
- struct gl_texture_object *t,
- struct gl_texture_image *ti)
-{
- nouveau_teximage_map(ctx, ti, GL_MAP_READ_BIT,
- 0, 0, ti->Width, ti->Height);
- _mesa_get_teximage(ctx, target, level, format, type, pixels,
- t, ti);
- nouveau_teximage_unmap(ctx, ti);
-}
-
-static void
nouveau_bind_texture(struct gl_context *ctx, GLenum target,
struct gl_texture_object *t)
{
@@ -782,7 +769,6 @@ nouveau_texture_functions_init(struct dd_function_table *functions)
functions->TexSubImage1D = nouveau_texsubimage_1d;
functions->TexSubImage2D = nouveau_texsubimage_2d;
functions->TexSubImage3D = nouveau_texsubimage_3d;
- functions->GetTexImage = nouveau_get_teximage;
functions->BindTexture = nouveau_bind_texture;
functions->MapTexture = nouveau_texture_map;
functions->UnmapTexture = nouveau_texture_unmap;