diff options
author | Brian Paul <[email protected]> | 2014-09-05 15:20:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-12-01 16:30:55 -0700 |
commit | 991d5cf8ce5c7842801fdb0378bf5aca5a59cc4c (patch) | |
tree | 17d55771b02395d8dd4607730ec565d738a60c93 /src | |
parent | 691170b9c7387b0e147aa668c3c37148db7f3e96 (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]>
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 f858cef5061..50aa1fd5ef0 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -2231,7 +2231,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; |