- Timestamp:
- 09/03/10 00:25:58 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/Libs/MaterialSystem/RendererCgNV2X/Shaders/_CommonCgHelpers.cpp
r36 r149 27 27 28 28 #include "_CommonCgHelpers.hpp" 29 #include "ConsoleCommands/Console.hpp" 30 29 31 #include <stdio.h> 30 32 … … 41 43 CGerror err =cgGetError(); 42 44 43 printf("ERROR: Unable to create Cg program: %s\n", cgGetErrorString(err));45 Console->Print(std::string("ERROR: Unable to create Cg program: ")+cgGetErrorString(err)+"\n"); 44 46 if (ErrorFile) fprintf(ErrorFile, "ERROR: Unable to create Cg program: %s\n", cgGetErrorString(err)); 45 47 46 48 const char* LastListing=cgGetLastListing(CgContext); 47 if (LastListing) printf("LAST LISTING:\n%s\n", LastListing);49 if (LastListing) Console->Print(std::string("LAST LISTING:\n")+LastListing+"\n"); 48 50 if (LastListing && ErrorFile) fprintf(ErrorFile, "LAST LISTING:\n%s\n", LastListing); 49 51 … … 58 60 { 59 61 // This should never happen, as we have already made sure elsewhere that the desired profile is supported! 60 printf("ERROR: Unable to load Cg program: %s\n", cgGetErrorString(err));62 Console->Print(std::string("ERROR: Unable to load Cg program: ")+cgGetErrorString(err)+"\n"); 61 63 return NULL; 62 64 }
