mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Add functionality to return raw thumbnail bytes, not encoded
* This is useful if you want to retrieve the thumbnail for in-memory processing instead of writing it to disk immediately.
This commit is contained in:
@@ -296,7 +296,7 @@ struct ThumbCommand : public Command
|
||||
ReplayStatus st = file->OpenFile(filename.c_str(), "rdc");
|
||||
if(st == ReplayStatus::Succeeded)
|
||||
{
|
||||
buf = file->GetThumbnail(type, maxsize);
|
||||
buf = file->GetThumbnail(type, maxsize).bytes;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user