From 6544fb34703e3979d6f8708408539298e501985b Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 5 Sep 2016 14:05:08 +0200 Subject: [PATCH] Fix GL function pointer debug printing, loop was using wrong counter --- renderdoc/driver/gl/gl_replay_win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/gl/gl_replay_win32.cpp b/renderdoc/driver/gl/gl_replay_win32.cpp index 75820c27b..b6d194d00 100644 --- a/renderdoc/driver/gl/gl_replay_win32.cpp +++ b/renderdoc/driver/gl/gl_replay_win32.cpp @@ -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