RepSphereImmediate.cpp (pymol-open-source-2.2.0) | : | RepSphereImmediate.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 228 | skipping to change at line 228 | |||
glEnable(GL_LIGHTING); | glEnable(GL_LIGHTING); | |||
if (sphere_mode == 3) { | if (sphere_mode == 3) { | |||
glDisable(GL_POINT_SMOOTH); | glDisable(GL_POINT_SMOOTH); | |||
glAlphaFunc(GL_GREATER, 0.05F); | glAlphaFunc(GL_GREATER, 0.05F); | |||
} else { | } else { | |||
glEnable(GL_ALPHA_TEST); | glEnable(GL_ALPHA_TEST); | |||
} | } | |||
} | } | |||
static | ||||
void RenderImmediate_DoPreGL(PyMOLGlobals *G, int sphere_mode, | void RenderImmediate_DoPreGL(PyMOLGlobals *G, int sphere_mode, | |||
float *pixel_scale, CoordSet *cs, | float *pixel_scale, CoordSet *cs, | |||
ObjectMolecule *obj, float sphere_scale) { | ObjectMolecule *obj, float sphere_scale) { | |||
switch (sphere_mode) { | switch (sphere_mode) { | |||
case 2: | case 2: | |||
case 7: | case 7: | |||
glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST); | glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST); | |||
glDisable(GL_POINT_SMOOTH); | glDisable(GL_POINT_SMOOTH); | |||
glDisable(GL_ALPHA_TEST); | glDisable(GL_ALPHA_TEST); | |||
(*pixel_scale) *= 1.4F; | (*pixel_scale) *= 1.4F; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |