Fix for memory leak caused by re-making mipmaps
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 May 2011 10:03:06 +0000 (10:03 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 May 2011 10:03:06 +0000 (10:03 +0000)
commit99ee18c684da65ba774175c0b57a086e8222464a
treeeeb7da044f7e6ff248d76c7d23d0cfa37b482637
parent4c71d9efb536b53e8f1f5fd4c950d32bfa29b363
Fix for memory leak caused by re-making mipmaps

Problem was caused by different limits for "last" mipmap: it was 1x1
for mkaing mipmaps and 2x2 for re-making.

2x2 should be enough for mipmap.
source/blender/imbuf/intern/filter.c