Update of /cvsroot/csp/THIRDPARTYLIBS/CSPChunkLod/src/osgChunkLod
In directory sc8-pr-cvs1:/tmp/cvs-serv12296
Modified Files:
ChunkLod.cpp
Log Message:
no message
Index: ChunkLod.cpp
===================================================================
RCS file: /cvsroot/csp/THIRDPARTYLIBS/CSPChunkLod/src/osgChunkLod/ChunkLod.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ChunkLod.cpp 19 Jun 2003 17:42:57 -0000 1.1
--- ChunkLod.cpp 21 Dec 2003 12:30:20 -0000 1.2
***************
*** 165,170 ****
#ifdef USE_CG
_cgContext = new osgNVCg::Context;
!
! if (_cgContext->getHandle() != 0) {
_canUseVertexProgram = true;
_useVertexProgram = true;
--- 165,172 ----
#ifdef USE_CG
_cgContext = new osgNVCg::Context;
!
! // XXX
! osg::ref_ptr<osg::State> s = new osg::State;
! if (_cgContext->getHandle(*s) != 0) {
_canUseVertexProgram = true;
_useVertexProgram = true;
***************
*** 304,308 ****
if (_useVertexProgram) {
#ifdef USE_CG
! cgGLEnableProfile (cgGetProgramProfile (_cgProgram->getHandle()));
#endif
}
--- 306,310 ----
if (_useVertexProgram) {
#ifdef USE_CG
! cgGLEnableProfile (cgGetProgramProfile (_cgProgram->getHandle(s)));
#endif
}
***************
*** 317,321 ****
if (_useVertexProgram) {
#ifdef USE_CG
! cgGLDisableProfile (cgGetProgramProfile (_cgProgram->getHandle()));
#endif
}
--- 319,323 ----
if (_useVertexProgram) {
#ifdef USE_CG
! cgGLDisableProfile (cgGetProgramProfile (_cgProgram->getHandle(s)));
#endif
}
|