/[gzz]/gzz/gfx/libcallgl/callgl.cxx
ViewVC logotype

Diff of /gzz/gfx/libcallgl/callgl.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by jvk, Fri Nov 1 15:42:34 2002 UTC revision 1.33 by jvk, Fri Nov 1 19:13:45 2002 UTC
# Line 698  namespace CallGL { Line 698  namespace CallGL {
698                   << " program\n";                   << " program\n";
699                            
700              glGetIntegerv(GL_PROGRAM_ERROR_POSITION_NV, &errpos);              glGetIntegerv(GL_PROGRAM_ERROR_POSITION_NV, &errpos);
701              if (errpos >= 0 && (unsigned)errpos < source.length()) {              if (errpos >= 0 && (unsigned)errpos <= source.length()) {
702                  std::cerr << "Program error at position " << errpos << ":\n";                  std::cerr << "Program error at position " << errpos << ":\n";
703                  std::cerr << source.substr(0, errpos)                  std::cerr << source.substr(0, errpos)
704                            << "<ERROR HERE>"                            << "<ERROR HERE>"
705                            << source.substr(errpos, source.length());                            << source.substr(errpos, source.length())
706                              << "\n";
707              }              }
708              return false;              return false;
709          }          }
# Line 734  namespace CallGL { Line 735  namespace CallGL {
735                   << " program\n";                   << " program\n";
736    
737              glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errpos);              glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errpos);
738              if (errpos >= 0 && (unsigned)errpos < source.length()) {              if (errpos >= 0 && (unsigned)errpos <= source.length()) {
739                  std::cerr << "PRGORAM ERROR: "                  std::cerr << "PRGORAM ERROR: "
740                            << glGetString(GL_PROGRAM_ERROR_STRING_ARB)                            << glGetString(GL_PROGRAM_ERROR_STRING_ARB)
741                            << " at position " << errpos << ":\n";                            << " at position " << errpos << ":\n";
742                  std::cerr << "Program error at position " << errpos << ":\n";                  std::cerr << "Program error at position " << errpos << ":\n";
743                  std::cerr << source.substr(0, errpos)                  std::cerr << source.substr(0, errpos)
744                            << "<ERROR HERE>"                            << "<ERROR HERE>"
745                            << source.substr(errpos, source.length());                            << source.substr(errpos, source.length())
746                              << "\n";
747            }            }
748            return false;            return false;
749          }          }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26