mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 09:31:12 +00:00
[gl,glsl] Copy fog color rather than return pointer
The static variable meant that Fog_GetColor was not thread-safe (though multiple calls in the one thread look to be ok for now). However, this change takes it one step closer to being more generally usable. Patch found in an old stash.
This commit is contained in:
parent
fefb32bf13
commit
9db80259d1
8 changed files with 41 additions and 41 deletions
|
@ -31,7 +31,7 @@ void Fog_Update (float density, float red, float green, float blue,
|
|||
struct plitem_s;
|
||||
void Fog_ParseWorldspawn (struct plitem_s *worldspawn);
|
||||
|
||||
float *Fog_GetColor (void);
|
||||
void Fog_GetColor (quat_t fogcolor);
|
||||
float Fog_GetDensity (void) __attribute__((pure));
|
||||
void Fog_SetupFrame (void);
|
||||
void Fog_EnableGFog (void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue