mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 23:13:12 +00:00
Don't assume screenshot jpg buffer will always be <128kB
This commit is contained in:
1 parent
ec4c8bca9a
commit
563c9e88a5
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user