mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Don't assume screenshot jpg buffer will always be <128kB
This commit is contained in:
@@ -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