summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-09-05 15:20:00 -0600
committerEmil Velikov <[email protected]>2014-12-03 23:59:22 +0000
commit0810238cf23ec91fff911d13816ccf3f916fd20d (patch)
tree9a6e9fb4837f7ba6f7b10fc8c31c056db90d30c3 /src
parentd859a98f83952f18e859382dfa3e024ece3bd896 (diff)
mesa: fix arithmetic error in _mesa_compute_compressed_pixelstore()
We need parenthesis around the expression which computes the number of blocks per row. Reviewed-by: Matt Turner <[email protected]> Cc: "10.3 10.4" <[email protected]> (cherry picked from commit 991d5cf8ce5c7842801fdb0378bf5aca5a59cc4c)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index d2aba8ba1e3..f2b2f4abcd8 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -2225,7 +2225,7 @@ _mesa_compute_compressed_pixelstore(GLuint dims, mesa_format texFormat,
if (packing->RowLength) {
store->TotalBytesPerRow = packing->CompressedBlockSize *
- (packing->RowLength + bw - 1) / bw;
+ ((packing->RowLength + bw - 1) / bw);
}
store->SkipBytes += packing->SkipPixels * packing->CompressedBlockSize / bw;