Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6628 in orxonox.OLD for trunk/src/lib/particles


Ignore:
Timestamp:
Jan 20, 2006, 2:55:12 AM (19 years ago)
Author:
bensch
Message:

trunk: segfault-prevention, and minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/sprite_particles.cc

    r6626 r6628  
    123123  Particle* drawPart = particles;
    124124
    125   glDisable(GL_LIGHTING);
     125  GLboolean checkLight = false;
     126  glGetBooleanv(GL_LIGHTING, &checkLight);
     127  if (checkLight == GL_TRUE)
     128    glDisable(GL_LIGHTING);
    126129  glMatrixMode(GL_MODELVIEW);
    127130  glDepthMask(GL_FALSE);
Note: See TracChangeset for help on using the changeset viewer.