- Timestamp:
- Mar 11, 2008, 5:35:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLSceneHandler.cc
r688 r754 25 25 // 26 26 // 27 // $Id: G4OpenGLSceneHandler.cc,v 1.5 2 2008/01/04 22:07:01allison Exp $27 // $Id: G4OpenGLSceneHandler.cc,v 1.53 2008/02/01 06:26:45 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 467 467 468 468 G4bool clipping = pViewer->fVP.IsSection() || pViewer->fVP.IsCutaway(); 469 470 // Lighting disabled unless otherwise requested 471 glDisable (GL_LIGHTING); 469 472 470 473 switch (drawing_style) { … … 494 497 } 495 498 } 496 glDisable (GL_LIGHTING);497 499 glColor3d (c.GetRed (), c.GetGreen (), c.GetBlue ()); 498 500 break; … … 526 528 glDepthFunc (GL_LEQUAL); //??? was GL_ALWAYS 527 529 glDisable (GL_CULL_FACE); 528 glDisable (GL_LIGHTING);529 530 glPolygonMode (GL_FRONT_AND_BACK, GL_LINE); 530 531 glColor3d (c.GetRed (), c.GetGreen (), c.GetBlue ()); … … 604 605 // having glBegin/End pairs *inside* loop in the more 605 606 // usual case of no hidden line removal. 607 608 // Lighting disabled unless otherwise requested 609 glDisable (GL_LIGHTING); 606 610 607 611 // Draw through stencil... … … 712 716 glDisable (GL_STENCIL_TEST); // Revert to default for next primitive. 713 717 glDepthMask (1); // Revert to default for next primitive. 718 glDisable (GL_LIGHTING); // Revert to default for next primitive. 714 719 } 715 720
Note: See TracChangeset
for help on using the changeset viewer.