Fix for wrong icons buffer initialization happens for cards
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 28 Jan 2013 12:57:56 +0000 (12:57 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 28 Jan 2013 12:57:56 +0000 (12:57 +0000)
commit2a144f03048efb0caaf29049f7a6e518148e3fb2
treef3c0ab3863a2bc3494f6dd2b807dcc8d4177f444
parent2bae448ed554a27377baa3c4e78c88623597c880
Fix for wrong icons buffer initialization happens for cards
without NPOT support. Was wrong stride used for memcpy leading
to wrong memory writes in def_internal_icon.

It's a regression since matcap commit.

Should fix the following reports:
- #33993: Crash on Blender startup (Vista x32)
- #33996: Latest build crashes on win xp
source/blender/editors/interface/interface_icons.c