forked from bartvdbraak/blender
Classic blenderplayer fix + small optimization
This commit is contained in:
parent
016e75ad64
commit
928be3013a
@ -731,12 +731,11 @@ static int texnoise(Tex *tex, TexResult *texres, int thread)
|
||||
|
||||
/* start from top bits since they have more variance */
|
||||
val= ((ran >> shift) & 3);
|
||||
shift -= 2;
|
||||
|
||||
while (loop--) {
|
||||
shift -= 2;
|
||||
val += ((ran >> shift) & 3);
|
||||
div += 3.0f;
|
||||
shift -= 2;
|
||||
}
|
||||
|
||||
texres->tin= ((float)val)/div;
|
||||
|
@ -221,6 +221,8 @@ void *g_system;
|
||||
float *RE_RenderLayerGetPass(struct RenderLayer *rl, int passtype) RET_NULL
|
||||
float RE_filter_value(int type, float x) RET_ZERO
|
||||
struct RenderLayer *RE_GetRenderLayer(struct RenderResult *rr, const char *name) RET_NULL
|
||||
void RE_init_texture_rng() RET_NONE
|
||||
void RE_exit_texture_rng() RET_NONE
|
||||
|
||||
/* zbuf.c stub */
|
||||
void antialias_tagbuf(int xsize, int ysize, char *rectmove) RET_NONE
|
||||
|
Loading…
Reference in New Issue
Block a user