Threadsafe patch for environment maps type "Load" missed to include a
call, so still crashed. Only for non-debug builds though, so not reported
earlier.

From my cvs log 7 months ago:

"Added threadsafe patch from Martin.
Now envmaps of type "Load" should not give errors. I assume Martin tested!"

 :)
This commit is contained in:
Ton Roosendaal 2006-01-03 20:06:08 +00:00
parent a085a41bc5
commit 750b9df26a

@ -657,8 +657,8 @@ int envmaptex(Tex *tex, float *texvec, float *dxt, float *dyt, int osatex, TexRe
// Now thread safe
if(load_ibuf_lock) SDL_mutexP(load_ibuf_lock);
if(env->ima->ibuf==NULL) ima_ibuf_is_nul(tex, tex->ima);
if(load_ibuf_lock) SDL_mutexV(load_ibuf_lock);
if(env->ima->ok && env->ok==0) envmap_split_ima(env);
if(load_ibuf_lock) SDL_mutexV(load_ibuf_lock);
}
}