gltrace: Fix NPE

Change-Id: Id7af9cd388f3508201f96a0624966c2ce01b4da5
This commit is contained in:
Siva Velusamy 2012-10-01 14:30:48 -07:00
parent 302a733a8b
commit 090503a01c
1 changed files with 2 additions and 4 deletions

View File

@ -236,11 +236,9 @@ void fixup_glShaderSource(GLMessage *glmsg, void *pointersToFixup[]) {
::std::string src = "";
for (int i = 0; i < count; i++) {
if (lengthp != NULL)
src.append(*stringpp, *lengthp);
src.append(*stringpp++, *lengthp++);
else
src.append(*stringpp); // assume null terminated
stringpp++;
lengthp++;
src.append(*stringpp++); // assume null terminated
}
arg_strpp->add_charvalue(src);