mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Use file type and maxsize from thumb command properly
This commit is contained in:
@@ -244,6 +244,8 @@ struct ThumbCommand : public Command
|
||||
|
||||
string format = parser.get<string>("format");
|
||||
|
||||
uint32_t maxsize = parser.get<uint32_t>("max-size");
|
||||
|
||||
FileType type = FileType::JPG;
|
||||
|
||||
if(format == "png")
|
||||
@@ -280,7 +282,7 @@ struct ThumbCommand : public Command
|
||||
ICaptureFile *file = RENDERDOC_OpenCaptureFile(filename.c_str());
|
||||
if(file->OpenStatus() == ReplayStatus::Succeeded)
|
||||
{
|
||||
buf = file->GetThumbnail(FileType::JPG, 0);
|
||||
buf = file->GetThumbnail(type, maxsize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user