Gems/Atom
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -269,11 +269,11 @@ namespace UnitTest
|
||||
|
||||
public:
|
||||
//helper function to save an image object to a file through QtImage
|
||||
static void SaveImageToFile(const IImageObjectPtr imageObject, const AZStd::string imageName, AZ::u32 maxMipCnt = 100)
|
||||
static void SaveImageToFile([[maybe_unused]] const IImageObjectPtr imageObject, [[maybe_unused]] const AZStd::string imageName, [[maybe_unused]] AZ::u32 maxMipCnt = 100)
|
||||
{
|
||||
#ifndef DEBUG_OUTPUT_IMAGES
|
||||
return;
|
||||
#endif
|
||||
#else
|
||||
if (imageObject == nullptr)
|
||||
{
|
||||
return;
|
||||
@@ -314,6 +314,7 @@ namespace UnitTest
|
||||
QImage qimage(imageBuf, width, height, pitch, QImage::Format_RGBA8888);
|
||||
qimage.save(filePath);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool GetComparisonResult(IImageObjectPtr image1, IImageObjectPtr image2, QString& output)
|
||||
|
||||
Reference in New Issue
Block a user