diff options
author | Brian Paul <[email protected]> | 2008-09-04 10:31:50 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-04 10:31:50 -0600 |
commit | 69897223a8e0b9e5cd187a3c0e2249ba73b652c0 (patch) | |
tree | d8369dc4527e1ffe3b5753b4dbdb3800993d4f05 /src/mesa/state_tracker | |
parent | ce8c08c2b03d8dc363deb14124372a6bbb4efd99 (diff) |
gallium: remove the copyHeight hack for compresssed formats
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_texture.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index fc0934367d8..29b16347625 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -304,9 +304,6 @@ st_texture_image_copy(struct pipe_context *pipe, struct pipe_surface *dst_surface; GLuint i; - /* XXX this is a hack */ - const GLuint copyHeight = dst->compressed ? height / 4 : height; - for (i = 0; i < depth; i++) { GLuint srcLevel; @@ -348,7 +345,7 @@ st_texture_image_copy(struct pipe_context *pipe, 0, 0, /* destX, Y */ src_surface, 0, 0, /* srcX, Y */ - width, copyHeight); + width, height); screen->tex_surface_release(screen, &src_surface); screen->tex_surface_release(screen, &dst_surface); |