mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-20 19:02:23 +00:00
Moved the point parameter enabling/disabling logic
This commit is contained in:
parent
6a9f0c46d7
commit
1c28f34cee
2 changed files with 15 additions and 14 deletions
|
@ -1669,9 +1669,23 @@ RI_BeginFrame(float camera_separation)
|
|||
glEnable(GL_ALPHA_TEST);
|
||||
glColor4f(1, 1, 1, 1);
|
||||
|
||||
if (gl1_particle_square->modified)
|
||||
if (gl_config.pointparameters && gl1_particle_square->modified)
|
||||
{
|
||||
R_InitParticleTexture();
|
||||
|
||||
/* GL_POINT_SMOOTH is not implemented by some OpenGL
|
||||
drivers, especially the crappy Mesa3D backends like
|
||||
i915.so. That the points are squares and not circles
|
||||
is not a problem by Quake II! */
|
||||
if (gl1_particle_square->value)
|
||||
{
|
||||
glDisable(GL_POINT_SMOOTH);
|
||||
}
|
||||
else
|
||||
{
|
||||
glEnable(GL_POINT_SMOOTH);
|
||||
}
|
||||
|
||||
gl1_particle_square->modified = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -215,19 +215,6 @@ R_SetDefaultState(void)
|
|||
attenuations[1] = gl1_particle_att_b->value;
|
||||
attenuations[2] = gl1_particle_att_c->value;
|
||||
|
||||
/* GL_POINT_SMOOTH is not implemented by some OpenGL
|
||||
drivers, especially the crappy Mesa3D backends like
|
||||
i915.so. That the points are squares and not circles
|
||||
is not a problem by Quake II! */
|
||||
if (gl1_particle_square->value)
|
||||
{
|
||||
glDisable(GL_POINT_SMOOTH);
|
||||
}
|
||||
else
|
||||
{
|
||||
glEnable(GL_POINT_SMOOTH);
|
||||
}
|
||||
|
||||
qglPointParameterfARB(GL_POINT_SIZE_MIN_EXT, gl1_particle_min_size->value);
|
||||
qglPointParameterfARB(GL_POINT_SIZE_MAX_EXT, gl1_particle_max_size->value);
|
||||
qglPointParameterfvARB(GL_DISTANCE_ATTENUATION_EXT, attenuations);
|
||||
|
|
Loading…
Reference in a new issue