Fix GL function pointer debug printing, loop was using wrong counter

This commit is contained in:
baldurk
2016-09-05 14:05:08 +02:00
parent 2f2afa820b
commit 6544fb3470
+2 -2
View File
@@ -496,12 +496,12 @@ ReplayCreateStatus GL_CreateReplayDevice(const char *logfile, IReplayDriver **dr
uint64_t ptrmask = 0;
for(size_t j = 0; j < 64; j++)
if(ptr + j < num && ptrs[i + j])
if(ptr + j < num && ptrs[ptr + j])
ptrmask |= 1ULL << (63 - j);
ptr += 64;
RDCLOG("%64llb", ptrmask);
RDCLOG("%064llb", ptrmask);
}
// check for the presence of GL functions we will call unconditionally as part of the replay