minor cleanup: make functions static, use NULL for pointer comparisons,

also fixed a possible bug assigning incorrect DPX function types to
imbuf.
This commit is contained in:
2011-05-10 13:11:36 +00:00
parent 6d5f0bfac6
commit eabb444106
18 changed files with 40 additions and 47 deletions

View File

@@ -96,7 +96,7 @@ static void RE_rayobject_config_control(RayObject *r, Render *re)
}
}
RayObject* RE_rayobject_create(Render *re, int type, int size)
static RayObject* RE_rayobject_create(Render *re, int type, int size)
{
RayObject * res = NULL;
@@ -1679,7 +1679,7 @@ static void ray_trace_shadow_tra(Isect *is, ShadeInput *origshi, int depth, int
/* not used, test function for ambient occlusion (yaf: pathlight) */
/* main problem; has to be called within shading loop, giving unwanted recursion */
int ray_trace_shadow_rad(ShadeInput *ship, ShadeResult *shr)
static int ray_trace_shadow_rad(ShadeInput *ship, ShadeResult *shr)
{
static int counter=0, only_one= 0;
extern float hashvectf[];