- Timestamp:
- 09/03/10 00:25:58 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/Libs/MaterialSystem/RendererARBprogs/Shaders/_CommonHelpers.cpp
r138 r149 28 28 #include "_CommonHelpers.hpp" 29 29 #include "../../Common/OpenGLEx.hpp" 30 #include "ConsoleCommands/Console.hpp" 30 31 #include <stdio.h> 31 32 #include <string.h> … … 64 65 if (ErrorID!=GL_NO_ERROR || ErrorPos!=-1 || ErrorStringLen>0) 65 66 { 66 printf("%s\n\nProblem detected:\nglGetError() == %i,\nerror position: %i,\nerror string: %s\n", ProgramCode, ErrorID, ErrorPos, ErrorString);67 Console->Print(cf::va("%s\n\nProblem detected:\nglGetError() == %i,\nerror position: %i,\nerror string: %s\n", ProgramCode, ErrorID, ErrorPos, ErrorString)); 67 68 68 69 FILE* ErrorFile=fopen("ProgError.txt", "a");
