Ignore:
Timestamp:
Mar 11, 2008, 5:35:07 PM (16 years ago)
Author:
garnier
Message:

corrections pour Qt3 mises sous cvs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLSceneHandler.cc

    r688 r754  
    2525//
    2626//
    27 // $Id: G4OpenGLSceneHandler.cc,v 1.52 2008/01/04 22:07:01 allison Exp $
     27// $Id: G4OpenGLSceneHandler.cc,v 1.53 2008/02/01 06:26:45 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    467467
    468468  G4bool clipping = pViewer->fVP.IsSection() || pViewer->fVP.IsCutaway();
     469
     470  // Lighting disabled unless otherwise requested
     471  glDisable (GL_LIGHTING);
    469472
    470473  switch (drawing_style) {
     
    494497      }
    495498    }
    496     glDisable (GL_LIGHTING);
    497499    glColor3d (c.GetRed (), c.GetGreen (), c.GetBlue ());
    498500    break;
     
    526528    glDepthFunc (GL_LEQUAL);    //??? was GL_ALWAYS
    527529    glDisable (GL_CULL_FACE);
    528     glDisable (GL_LIGHTING);
    529530    glPolygonMode (GL_FRONT_AND_BACK, GL_LINE);
    530531    glColor3d (c.GetRed (), c.GetGreen (), c.GetBlue ());
     
    604605                 // having glBegin/End pairs *inside* loop in the more
    605606                 // usual case of no hidden line removal.
     607
     608      // Lighting disabled unless otherwise requested
     609      glDisable (GL_LIGHTING);
    606610
    607611      // Draw through stencil...
     
    712716  glDisable (GL_STENCIL_TEST);  // Revert to default for next primitive.
    713717  glDepthMask (1);              // Revert to default for next primitive.
     718  glDisable (GL_LIGHTING);      // Revert to default for next primitive.
    714719}
    715720
Note: See TracChangeset for help on using the changeset viewer.