mesa: handle SwapBytes in compressed texture get code.
This case just wasn't handled, so add support for it. Cc: "11.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -361,6 +361,13 @@ get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions,
|
||||
tempSlice, RGBA32_FLOAT, srcStride,
|
||||
width, height,
|
||||
needsRebase ? rebaseSwizzle : NULL);
|
||||
|
||||
/* Handle byte swapping if required */
|
||||
if (ctx->Pack.SwapBytes) {
|
||||
_mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
|
||||
width, height, dest, dest);
|
||||
}
|
||||
|
||||
tempSlice += 4 * width * height;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user