summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-01-26 20:01:11 -0700
committerBrian Paul <brianp@vmware.com>2012-01-27 18:21:43 -0700
commit370e5d2106c88bad0587265254edf3a8cffbaef2 (patch)
tree93b12f1cebd23e89e244686fb6b852e9a9026c20
parent343100d1fcd5ee705e8b99cd9ff1259001f15081 (diff)
mesa: remove redundant byte swap check
The outer conditional already did the test. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/mesa/main/pack.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index e86c7a4ebb1..d07e2aaa87a 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -2020,14 +2020,10 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4],
if (dstPacking->SwapBytes) {
GLint swapSize = _mesa_sizeof_packed_type(dstType);
if (swapSize == 2) {
- if (dstPacking->SwapBytes) {
- _mesa_swap2((GLushort *) dstAddr, n * comps);
- }
+ _mesa_swap2((GLushort *) dstAddr, n * comps);
}
else if (swapSize == 4) {
- if (dstPacking->SwapBytes) {
- _mesa_swap4((GLuint *) dstAddr, n * comps);
- }
+ _mesa_swap4((GLuint *) dstAddr, n * comps);
}
}