Permalink
Browse files

Fixes: NB#143569 libhildondesktop pvr texture compression doesn't deal

                   with 2^n size textures correctly

  * libhildondesktop/hd-pvr-texture.c: Fix conditionals to ensure that
  a power of 2 size doesn't get doubled to the next biggest power of 2.
  • Loading branch information...
gordonw
gordonw committed Nov 12, 2009
1 parent 746b18e commit 2292d4a69f424fef1e9344115b9c8f5b15d5de21
Showing with 10 additions and 2 deletions.
  1. +8 −0 ChangeLog
  2. +2 −2 libhildondesktop/hd-pvr-texture.c
View
@@ -1,3 +1,11 @@
+2009-11-12 Gordon Williams <gordon.williams@collabora.co.uk>
+
+ Fixes: NB#143569 libhildondesktop pvr texture compression doesn't deal
+ with 2^n size textures correctly
+
+ * libhildondesktop/hd-pvr-texture.c: Fix conditionals to ensure that
+ a power of 2 size doesn't get doubled to the next biggest power of 2.
+
2009-11-04 Jan Arne Petersen <jpetersen@openismus.com>
Release 2.1.37
@@ -64,9 +64,9 @@ hd_pvr_texture_save (const gchar *file,
/* work out what size width + height we need */
compress_width = 4;
compress_height = 4;
- while (compress_width <= width)
+ while (compress_width < width)
compress_width *= 2;
- while (compress_height <= height)
+ while (compress_height < height)
compress_height *= 2;
/* If we had to change something, we need to allocate another memory

0 comments on commit 2292d4a

Please sign in to comment.