Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-03-13 00:26:34 +0300
committerTon Roosendaal <ton@blender.org>2006-03-13 00:26:34 +0300
commit6c1856f2a74f1b9e48079ba2037897dd94b56039 (patch)
treeee64d7305fcebc936efc4a36a366c411bc007262 /source/blender/imbuf/intern/scaling.c
parentbf1032a80ffb9e2540616750fa9518fef0087e16 (diff)
More bugs in float imbuf scaling code... an x and y were mixed up, causing
memory troubles.
Diffstat (limited to 'source/blender/imbuf/intern/scaling.c')
-rw-r--r--source/blender/imbuf/intern/scaling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c
index 75c063e41c8..1fd09da225d 100644
--- a/source/blender/imbuf/intern/scaling.c
+++ b/source/blender/imbuf/intern/scaling.c
@@ -786,7 +786,7 @@ static struct ImBuf *scaleupy(struct ImBuf *ibuf, int newy)
if (ibuf->rect_float) {
do_float = 1;
- _newrectf = MEM_mallocN(newy * ibuf->y * sizeof(float) * 4, "scaleupyf");
+ _newrectf = MEM_mallocN(newy * ibuf->x * sizeof(float) * 4, "scaleupyf");
if (_newrectf==NULL) return(ibuf);
}