Changeset 3452 for trunk/packages/vizservers/nanovis/NvShader.cpp
- Timestamp:
- Mar 4, 2013, 8:57:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvShader.cpp
r2972 r3452 40 40 41 41 if (lastError) { 42 TRACE("Cg Error: %s \n", cgGetErrorString(lastError));42 TRACE("Cg Error: %s", cgGetErrorString(lastError)); 43 43 if (getCgContext()) 44 TRACE("%s \n", cgGetLastListing(getCgContext()));44 TRACE("%s", cgGetLastListing(getCgContext())); 45 45 return false; 46 46 } … … 54 54 std::string path = R2FilePath::getInstance()->getPath(fileName); 55 55 if (path.empty()) { 56 ERROR("can't find program \"%s\" \n", fileName);56 ERROR("can't find program \"%s\"", fileName); 57 57 } 58 TRACE("cg program compiling: %s \n", path.c_str());58 TRACE("cg program compiling: %s", path.c_str()); 59 59 CGprogram program; 60 60 program = cgCreateProgramFromFile(context, CG_SOURCE, path.c_str(), profile, … … 63 63 CGerror LastError = cgGetError(); 64 64 if (LastError) { 65 ERROR("Error message: %s \n", cgGetLastListing(context));65 ERROR("Error message: %s", cgGetLastListing(context)); 66 66 } 67 TRACE("successfully compiled program: %s \n", path.c_str());67 TRACE("successfully compiled program: %s", path.c_str()); 68 68 return program; 69 69 } … … 110 110 { 111 111 if (_cgVP != NULL) { 112 TRACE("Destroying vertex program: %s \n", _vpFile.c_str());112 TRACE("Destroying vertex program: %s", _vpFile.c_str()); 113 113 cgDestroyProgram(_cgVP); 114 114 } 115 115 116 116 if (_cgFP != NULL) { 117 TRACE("Destroying fragment program: %s \n", _fpFile.c_str());117 TRACE("Destroying fragment program: %s", _fpFile.c_str()); 118 118 cgDestroyProgram(_cgFP); 119 119 } … … 122 122 void NvShader::setErrorCallback(NvCgCallbackFunction callback) 123 123 { 124 TRACE("NvShader setting error callback to: %p \n", callback);124 TRACE("NvShader setting error callback to: %p", callback); 125 125 cgSetErrorCallback(callback); 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.