[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libcallgl callgl.cxx
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/libcallgl callgl.cxx |
Date: |
Fri, 01 Nov 2002 14:13:46 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/11/01 14:13:46
Modified files:
gfx/libcallgl : callgl.cxx
Log message:
Fix program error reporting
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcallgl/callgl.cxx.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
Patches:
Index: gzz/gfx/libcallgl/callgl.cxx
diff -u gzz/gfx/libcallgl/callgl.cxx:1.32 gzz/gfx/libcallgl/callgl.cxx:1.33
--- gzz/gfx/libcallgl/callgl.cxx:1.32 Fri Nov 1 10:42:34 2002
+++ gzz/gfx/libcallgl/callgl.cxx Fri Nov 1 14:13:45 2002
@@ -698,11 +698,12 @@
<< " program\n";
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_NV, &errpos);
- if (errpos >= 0 && (unsigned)errpos < source.length()) {
+ if (errpos >= 0 && (unsigned)errpos <= source.length()) {
std::cerr << "Program error at position " << errpos << ":\n";
std::cerr << source.substr(0, errpos)
<< "<ERROR HERE>"
- << source.substr(errpos, source.length());
+ << source.substr(errpos, source.length())
+ << "\n";
}
return false;
}
@@ -734,14 +735,15 @@
<< " program\n";
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errpos);
- if (errpos >= 0 && (unsigned)errpos < source.length()) {
+ if (errpos >= 0 && (unsigned)errpos <= source.length()) {
std::cerr << "PRGORAM ERROR: "
<< glGetString(GL_PROGRAM_ERROR_STRING_ARB)
<< " at position " << errpos << ":\n";
std::cerr << "Program error at position " << errpos << ":\n";
std::cerr << source.substr(0, errpos)
<< "<ERROR HERE>"
- << source.substr(errpos, source.length());
+ << source.substr(errpos, source.length())
+ << "\n";
}
return false;
}
- [Gzz-commits] gzz/gfx/libcallgl callgl.cxx,
Janne V. Kujala <=