Skip to content

Commit 563c9e8

Browse files
committed
Don't assume screenshot jpg buffer will always be <128kB
1 parent ec4c8bc commit 563c9e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

renderdoc/core/remote_access.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ void RenderDoc::RemoteAccessClientThread(void *s)
124124
ser.Serialise("", captures.back().timestamp);
125125
ser.Serialise("", captures.back().path);
126126

127-
uint32_t len = 128*1024;
127+
uint32_t len = 0;
128+
RENDERDOC_GetThumbnail(captures.back().path.c_str(), NULL, len);
128129
byte *thumb = new byte[len];
129130
RENDERDOC_GetThumbnail(captures.back().path.c_str(), thumb, len);
130131

0 commit comments

Comments
 (0)