[Plib-cvs] plib/src/ssg ssgContext.cxx,1.19,1.20
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-12-02 15:04:09
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv11399/plib/src/ssg Modified Files: ssgContext.cxx Log Message: Fixed uninitialised variable in ssgContext. Index: ssgContext.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgContext.cxx,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- ssgContext.cxx 10 Nov 2002 17:12:13 -0000 1.19 +++ ssgContext.cxx 2 Dec 2002 15:04:06 -0000 1.20 @@ -44,11 +44,11 @@ makeCurrent () ; currentState = NULL ; basicState = NULL ; - //orthographic = FALSE ; + //orthographic = FALSE ; cullFace = TRUE ; ovTexture = FALSE ; ovCullface = FALSE ; - + ovState = NULL ; sgCopyMat4 ( cameraMatrix, _ssgOpenGLAxisSwapMatrix ) ; frustum = new sgFrustum ; @@ -66,6 +66,7 @@ /* The order of the two following lines is essential. setTexture(NULL) currently sets the TEXTURE bit in dont_care... not the desired effect here. /PL */ + basicState->setTexture ( (ssgTexture*) NULL ) ; basicState->dont_care = 0 ; basicState->colour_material_mode = GL_AMBIENT_AND_DIFFUSE ; |