diff options
author | Brian Paul <[email protected]> | 2014-09-05 15:20:00 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-12-03 23:15:12 +0000 |
commit | d2e9fd5b6dac5be5a921818a2ff946772448e86b (patch) | |
tree | e4abc762ac422e2ba6142545f1b9e34c26a6f745 /src | |
parent | b61192f2aef693628c290de1022c5e884462c4f4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index f913e42d315..b0e37a0c631 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -2229,7 +2229,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; |