gltrace: Fix NPE
Change-Id: Id7af9cd388f3508201f96a0624966c2ce01b4da5
This commit is contained in:
parent
302a733a8b
commit
090503a01c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user