ref: gl: particles aren't supposed to care about gamma
This commit is contained in:
parent
55dfa1bf44
commit
cf7a79bff3
1 changed files with 1 additions and 3 deletions
|
@ -91,9 +91,7 @@ void CL_DrawParticles( double frametime, particle_t *cl_active_particles, float
|
||||||
if( alpha > 255 || p->type == pt_static )
|
if( alpha > 255 || p->type == pt_static )
|
||||||
alpha = 255;
|
alpha = 255;
|
||||||
|
|
||||||
pglColor4ub( gEngfuncs.LightToTexGamma( color.r ),
|
pglColor4ub( color.r, color.g, color.b, alpha );
|
||||||
gEngfuncs.LightToTexGamma( color.g ),
|
|
||||||
gEngfuncs.LightToTexGamma( color.b ), alpha );
|
|
||||||
|
|
||||||
pglTexCoord2f( 0.0f, 1.0f );
|
pglTexCoord2f( 0.0f, 1.0f );
|
||||||
pglVertex3f( p->org[0] - right[0] + up[0], p->org[1] - right[1] + up[1], p->org[2] - right[2] + up[2] );
|
pglVertex3f( p->org[0] - right[0] + up[0], p->org[1] - right[1] + up[1], p->org[2] - right[2] + up[2] );
|
||||||
|
|
Loading…
Add table
Reference in a new issue