diff options
author | Ton Roosendaal <ton@blender.org> | 2008-09-20 17:02:06 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-09-20 17:02:06 +0400 |
commit | 2bd6e1ae82bf2a8fb7a2044b4e032b67cfec861d (patch) | |
tree | 37f0f04900808f7cb315e54659a41de8494288da /source/blender/render/intern/source/pipeline.c | |
parent | 63f10e6b550796307ccc22099efa9a7326290604 (diff) |
Patch #8461, by Rob Hausauer
This unifies all usage of FTOCHAR, putting it in utildefines.h
Submitter did several interesting tests for speed, check it here:
http://projects.blender.org/tracker/?func=detail&atid=127&aid=8461&group_id=9
Diffstat (limited to 'source/blender/render/intern/source/pipeline.c')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index 9d272d04506..6bdd57612c7 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -38,6 +38,7 @@ #include "DNA_scene_types.h" #include "DNA_userdef_types.h" +#include "BKE_utildefines.h" #include "BKE_global.h" #include "BKE_image.h" #include "BKE_main.h" @@ -961,7 +962,6 @@ void RE_GetResultImage(Render *re, RenderResult *rr) } } -#define FTOCHAR(val) val<=0.0f?0: (val>=1.0f?255: (char)(255.0f*val)) /* caller is responsible for allocating rect in correct size! */ void RE_ResultGet32(Render *re, unsigned int *rect) { |