Don't assume screenshot jpg buffer will always be <128kB

This commit is contained in:
baldurk
2014-12-07 16:12:06 +00:00
parent ec4c8bca9a
commit 563c9e88a5
+2 -1
View File
@@ -124,7 +124,8 @@ void RenderDoc::RemoteAccessClientThread(void *s)
ser.Serialise("", captures.back().timestamp);
ser.Serialise("", captures.back().path);
uint32_t len = 128*1024;
uint32_t len = 0;
RENDERDOC_GetThumbnail(captures.back().path.c_str(), NULL, len);
byte *thumb = new byte[len];
RENDERDOC_GetThumbnail(captures.back().path.c_str(), thumb, len);